pub struct WideUint<const N: usize> { /* private fields */ }Expand description
Integer that uses twice more limbs than Uint for the same N parameter.
Implementations§
Source§impl<const N: usize> WideUint<N>
impl<const N: usize> WideUint<N>
Sourcepub const fn new(low: Uint<N>, high: Uint<N>) -> Self
pub const fn new(low: Uint<N>, high: Uint<N>) -> Self
Construct new WideUint from low and high parts.
Sourcepub const fn rem(&self, rhs: &Uint<N>) -> Uint<N>
pub const fn rem(&self, rhs: &Uint<N>) -> Uint<N>
Compute the remainder of division self by rhs (constant).
Basic division algorithm based on wiki. Fine to be used for constant evaluation, but slow in runtime.
Trait Implementations§
impl<const N: usize> Copy for WideUint<N>
impl<const N: usize> Eq for WideUint<N>
impl<const N: usize> StructuralPartialEq for WideUint<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for WideUint<N>
impl<const N: usize> RefUnwindSafe for WideUint<N>
impl<const N: usize> Send for WideUint<N>
impl<const N: usize> Sync for WideUint<N>
impl<const N: usize> Unpin for WideUint<N>
impl<const N: usize> UnwindSafe for WideUint<N>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more