Trait crypto_bigint::RemLimb
source · pub trait RemLimb: Sized {
// Required method
fn rem_limb_with_reciprocal(&self, reciprocal: &Reciprocal) -> Limb;
// Provided method
fn rem_limb(&self, rhs: NonZero<Limb>) -> Limb { ... }
}
Expand description
Support for optimized division by a single limb.
Required Methods§
sourcefn rem_limb_with_reciprocal(&self, reciprocal: &Reciprocal) -> Limb
fn rem_limb_with_reciprocal(&self, reciprocal: &Reciprocal) -> Limb
Computes self % rhs
.
Provided Methods§
Object Safety§
This trait is not object safe.