pub type Word = u32;
Expand description
The primitive integer type used to construct the big integers, guaranteed to be a rust built-in unsigned integer type.
The big integers is interally represented as an array of Words, so convert integers from and into Words are efficient.
The size of a Word is usually the same as usize, but it’s not guaranteed. It’s dependent on the target architecture.
Trait Implementations§
source§impl DivRemAssign<u32> for u32
impl DivRemAssign<u32> for u32
source§impl DivRemEuclid<u32> for u32
impl DivRemEuclid<u32> for u32
source§impl EstimatedLog2 for u32
impl EstimatedLog2 for u32
source§impl ExtendedGcd<u32> for u32
impl ExtendedGcd<u32> for u32
source§impl<'a> IntoRing<'a, ConstDivisor> for u32
impl<'a> IntoRing<'a, ConstDivisor> for u32
type RingElement = Reduced<'a>
fn into_ring(self, ring: &'a ConstDivisor) -> Reduced<'a>
source§impl NumOrd<IBig> for u32
impl NumOrd<IBig> for u32
source§fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &IBig) -> Option<Ordering>
PartialOrd::partial_cmp on different numeric types
source§impl NumOrd<UBig> for u32
impl NumOrd<UBig> for u32
source§fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
fn num_partial_cmp(&self, other: &UBig) -> Option<Ordering>
PartialOrd::partial_cmp on different numeric types
source§impl PowerOfTwo for u32
impl PowerOfTwo for u32
source§fn is_power_of_two(&self) -> bool
fn is_power_of_two(&self) -> bool
Test if self is a power of two (
2^k
)source§fn next_power_of_two(self) -> u32
fn next_power_of_two(self) -> u32
Get the smallest power of two greater than or equal to self.
source§impl TryFrom<&IBig> for u32
impl TryFrom<&IBig> for u32
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
source§impl TryFrom<&UBig> for u32
impl TryFrom<&UBig> for u32
§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.