Struct modint::Unsigned
[−]
[src]
pub struct Unsigned<V, M> { /* fields omitted */ }
Methods
impl<V, M> Unsigned<V, M>
[src]
Trait Implementations
impl<V: Debug, M: Debug> Debug for Unsigned<V, M>
[src]
impl<V: PartialEq, M: PartialEq> PartialEq for Unsigned<V, M>
[src]
fn eq(&self, __arg_0: &Unsigned<V, M>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Unsigned<V, M>) -> bool
[src]
This method tests for !=
.
impl<V: Eq, M: Eq> Eq for Unsigned<V, M>
[src]
impl<V: PartialOrd, M: PartialOrd> PartialOrd for Unsigned<V, M>
[src]
fn partial_cmp(&self, __arg_0: &Unsigned<V, M>) -> Option<Ordering>
[src]
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, __arg_0: &Unsigned<V, M>) -> bool
[src]
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, __arg_0: &Unsigned<V, M>) -> bool
[src]
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, __arg_0: &Unsigned<V, M>) -> bool
[src]
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, __arg_0: &Unsigned<V, M>) -> bool
[src]
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl<V: Ord, M: Ord> Ord for Unsigned<V, M>
[src]
fn cmp(&self, __arg_0: &Unsigned<V, M>) -> Ordering
[src]
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.22.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.22.0[src]
Compares and returns the minimum of two values. Read more
impl<V: Clone, M: Clone> Clone for Unsigned<V, M>
[src]
fn clone(&self) -> Unsigned<V, M>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<V: Copy, M: Copy> Copy for Unsigned<V, M>
[src]
impl<V, M> From<V> for Unsigned<V, M> where
V: Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
impl<V, M> Add for Unsigned<V, M> where
V: WrappingAdd + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: WrappingAdd + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self
[src]
Performs the +
operation.
impl<V, M> Sub for Unsigned<V, M> where
V: Sub<Output = V> + Ord + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: Sub<Output = V> + Ord + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
type Output = Self
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self
[src]
Performs the -
operation.
impl<V, M> Mul for Unsigned<V, M> where
V: WrappingMul + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: WrappingMul + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, rhs: Self) -> Self
[src]
Performs the *
operation.
impl<V, M> Div for Unsigned<V, M> where
V: Div<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: Div<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
type Output = Self
The resulting type after applying the /
operator.
fn div(self, rhs: Self) -> Self
[src]
Performs the /
operation.
impl<V, M> Rem for Unsigned<V, M> where
V: Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
type Output = Self
The resulting type after applying the %
operator.
fn rem(self, rhs: Self) -> Self
[src]
Performs the %
operation.
impl<V, M> Zero for Unsigned<V, M> where
V: Zero + WrappingAdd + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: Zero + WrappingAdd + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
fn zero() -> Self
[src]
Returns the additive identity element of Self
, 0
. Read more
fn is_zero(&self) -> bool
[src]
Returns true
if self
is equal to the additive identity.
impl<V, M> One for Unsigned<V, M> where
V: One + WrappingMul + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
[src]
V: One + WrappingMul + Rem<Output = V> + FromCompileTimeUnsinged,
M: CompileTimeUnsigned,
impl<V, M> Num for Unsigned<V, M> where
V: Num + FromCompileTimeUnsinged + WrappingAdd + WrappingMul + PartialEq + Ord,
M: CompileTimeUnsigned + PartialEq,
[src]
V: Num + FromCompileTimeUnsinged + WrappingAdd + WrappingMul + PartialEq + Ord,
M: CompileTimeUnsigned + PartialEq,
type FromStrRadixErr = <V as Num>::FromStrRadixErr
fn from_str_radix(s: &str, radix: u32) -> Result<Self, Self::FromStrRadixErr>
[src]
Convert from a string and radix <= 36. Read more
impl<V, M> UnsignedNum for Unsigned<V, M> where
V: Num + FromCompileTimeUnsinged + WrappingAdd + WrappingMul + PartialEq + Ord,
M: CompileTimeUnsigned + PartialEq,
[src]
V: Num + FromCompileTimeUnsinged + WrappingAdd + WrappingMul + PartialEq + Ord,
M: CompileTimeUnsigned + PartialEq,