pub trait ModIsReduced<M = Self> {
// Required method
fn mod_is_reduced(&self, m: &M) -> bool;
}
Expand description
Checks whether a number is reduced modulo another number $m$.
Returns whether a number is reduced modulo another number $m$; in other words,
whether it is less than $m$. $m$ cannot be zero.
$f(x, m) = (x < m)$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if $m$ is 0.
§Examples
See here.
Returns whether a number is reduced modulo another number $m$; in other words,
whether it is less than $m$. $m$ cannot be zero.
$f(x, m) = (x < m)$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if $m$ is 0.
§Examples
See here.
Returns whether a number is reduced modulo another number $m$; in other words,
whether it is less than $m$. $m$ cannot be zero.
$f(x, m) = (x < m)$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if $m$ is 0.
§Examples
See here.
Returns whether a number is reduced modulo another number $m$; in other words,
whether it is less than $m$. $m$ cannot be zero.
$f(x, m) = (x < m)$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if $m$ is 0.
§Examples
See here.
Returns whether a number is reduced modulo another number $m$; in other words,
whether it is less than $m$. $m$ cannot be zero.
$f(x, m) = (x < m)$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if $m$ is 0.
§Examples
See here.
Returns whether a number is reduced modulo another number $m$; in other words,
whether it is less than $m$. $m$ cannot be zero.
$f(x, m) = (x < m)$.
§Worst-case complexity
Constant time and additional memory.
§Panics
Panics if $m$ is 0.
§Examples
See here.