[][src]Trait generic_modular::Modular

pub trait Modular<T: Copy + Debug + Default + Add + Sub + Mul + Rem>: Copy + Debug + From<T> + Add + Sub + Mul + Eq {
    const MOD: T;

    fn remainder(&self) -> T;
}

The Modular trait is implemented by all modular-arithmetic-defining classes.

Associated Constants

const MOD: T

The modulus of this type.

Loading content...

Required methods

fn remainder(&self) -> T

The remainder of the value divided by MOD.

Loading content...

Implementors

impl Modular<u16> for ExampleModular101[src]

Loading content...