Struct modint::Unsigned [] [src]

pub struct Unsigned<V, M> { /* fields omitted */ }

Methods

impl<V, M> Unsigned<V, M>
[src]

[src]

Trait Implementations

impl<V: Debug, M: Debug> Debug for Unsigned<V, M>
[src]

[src]

Formats the value using the given formatter.

impl<V: PartialEq, M: PartialEq> PartialEq for Unsigned<V, M>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[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]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[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]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

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]

[src]

Returns a copy of the value. Read more

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]

[src]

Performs the conversion.

impl<V, M> Add for Unsigned<V, M> where
    V: WrappingAdd + Rem<Output = V> + FromCompileTimeUnsinged,
    M: CompileTimeUnsigned
[src]

The resulting type after applying the + operator.

[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]

The resulting type after applying the - operator.

[src]

Performs the - operation.

impl<V, M> Mul for Unsigned<V, M> where
    V: WrappingMul + Rem<Output = V> + FromCompileTimeUnsinged,
    M: CompileTimeUnsigned
[src]

The resulting type after applying the * operator.

[src]

Performs the * operation.

impl<V, M> Div for Unsigned<V, M> where
    V: Div<Output = V> + FromCompileTimeUnsinged,
    M: CompileTimeUnsigned
[src]

The resulting type after applying the / operator.

[src]

Performs the / operation.

impl<V, M> Rem for Unsigned<V, M> where
    V: Rem<Output = V> + FromCompileTimeUnsinged,
    M: CompileTimeUnsigned
[src]

The resulting type after applying the % operator.

[src]

Performs the % operation.

impl<V, M> Zero for Unsigned<V, M> where
    V: Zero + WrappingAdd + Rem<Output = V> + FromCompileTimeUnsinged,
    M: CompileTimeUnsigned
[src]

[src]

Returns the additive identity element of Self, 0. Read more

[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]

[src]

Returns the multiplicative identity element of Self, 1. Read more

impl<V, M> Num for Unsigned<V, M> where
    V: Num + FromCompileTimeUnsinged + WrappingAdd + WrappingMul + PartialEq + Ord,
    M: CompileTimeUnsigned + PartialEq
[src]

[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]