Skip to main content

WideLimbs

Trait WideLimbs 

Source
pub(super) trait WideLimbs<Thin>: Clone + LimbHelpers {
    // Required method
    fn rem(self, denom: &Thin) -> Thin;
}

Required Methods§

Source

fn rem(self, denom: &Thin) -> Thin

Calculate self % denom.

Callers MUST NOT pass denom = 0.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl WideLimbs<BoxedUint> for BoxedUint

Available on crate feature alloc only.
Source§

fn rem(self, denom: &BoxedUint) -> Self

Source§

impl<const LIMBS: usize, const WIDE_LIMBS: usize> WideLimbs<<Uint<WIDE_LIMBS> as SplitEven>::Output> for Uint<WIDE_LIMBS>
where Uint<WIDE_LIMBS>: SplitEven<Output = Uint<LIMBS>>,

Source§

fn rem(self, denom: &<Self as SplitEven>::Output) -> <Self as SplitEven>::Output

Implementors§