macro_rules! const_residue {
($variable:ident, $modulus:ident) => { ... };
}
Expand description
Creates a Residue
with the given value for a specific modulus.
For example, residue!(U256::from(105u64), MyModulus);
creates a Residue
for 105 mod MyModulus
.
The modulus must be odd, or this will panic.