Struct num_modular::PreMulInv1by1
source · pub struct PreMulInv1by1<T> { /* private fields */ }
Expand description
Divide a Word by a prearranged divisor.
Granlund, Montgomerry “Division by Invariant Integers using Multiplication” Algorithm 4.1.
Implementations§
source§impl PreMulInv1by1<u8>
impl PreMulInv1by1<u8>
source§impl PreMulInv1by1<u16>
impl PreMulInv1by1<u16>
source§impl PreMulInv1by1<u32>
impl PreMulInv1by1<u32>
source§impl PreMulInv1by1<u64>
impl PreMulInv1by1<u64>
Trait Implementations§
source§impl<T: Clone> Clone for PreMulInv1by1<T>
impl<T: Clone> Clone for PreMulInv1by1<T>
source§fn clone(&self) -> PreMulInv1by1<T>
fn clone(&self) -> PreMulInv1by1<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for PreMulInv1by1<T>
impl<T: Debug> Debug for PreMulInv1by1<T>
source§impl<T: PartialEq> PartialEq<PreMulInv1by1<T>> for PreMulInv1by1<T>
impl<T: PartialEq> PartialEq<PreMulInv1by1<T>> for PreMulInv1by1<T>
source§fn eq(&self, other: &PreMulInv1by1<T>) -> bool
fn eq(&self, other: &PreMulInv1by1<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for PreMulInv1by1<T>
impl<T: Eq> Eq for PreMulInv1by1<T>
impl<T> StructuralEq for PreMulInv1by1<T>
impl<T> StructuralPartialEq for PreMulInv1by1<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for PreMulInv1by1<T>where T: RefUnwindSafe,
impl<T> Send for PreMulInv1by1<T>where T: Send,
impl<T> Sync for PreMulInv1by1<T>where T: Sync,
impl<T> Unpin for PreMulInv1by1<T>where T: Unpin,
impl<T> UnwindSafe for PreMulInv1by1<T>where T: UnwindSafe,
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