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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T: Copy> Copy for PreMulInv1by1<T>
Source§impl<T: Debug> Debug for PreMulInv1by1<T>
impl<T: Debug> Debug for PreMulInv1by1<T>
Source§impl DivExactAssign<u8, PreMulInv1by1<u8>> for u8
impl DivExactAssign<u8, PreMulInv1by1<u8>> for u8
Source§fn div_exact_assign(&mut self, d: u8, pre: &PreMulInv1by1<u8>) -> bool
fn div_exact_assign(&mut self, d: u8, pre: &PreMulInv1by1<u8>) -> bool
Check if d divides self with the help of the precomputation. If d divides self,
self is replaced by the quotient and true is returned.
Source§impl DivExactAssign<u16, PreMulInv1by1<u16>> for u16
impl DivExactAssign<u16, PreMulInv1by1<u16>> for u16
Source§fn div_exact_assign(&mut self, d: u16, pre: &PreMulInv1by1<u16>) -> bool
fn div_exact_assign(&mut self, d: u16, pre: &PreMulInv1by1<u16>) -> bool
Check if d divides self with the help of the precomputation. If d divides self,
self is replaced by the quotient and true is returned.
Source§impl DivExactAssign<u32, PreMulInv1by1<u32>> for u32
impl DivExactAssign<u32, PreMulInv1by1<u32>> for u32
Source§fn div_exact_assign(&mut self, d: u32, pre: &PreMulInv1by1<u32>) -> bool
fn div_exact_assign(&mut self, d: u32, pre: &PreMulInv1by1<u32>) -> bool
Check if d divides self with the help of the precomputation. If d divides self,
self is replaced by the quotient and true is returned.
Source§impl DivExactAssign<u64, PreMulInv1by1<u64>> for u64
impl DivExactAssign<u64, PreMulInv1by1<u64>> for u64
Source§fn div_exact_assign(&mut self, d: u64, pre: &PreMulInv1by1<u64>) -> bool
fn div_exact_assign(&mut self, d: u64, pre: &PreMulInv1by1<u64>) -> bool
Check if d divides self with the help of the precomputation. If d divides self,
self is replaced by the quotient and true is returned.
Source§impl DivExactAssign<usize, PreMulInv1by1<usize>> for usize
impl DivExactAssign<usize, PreMulInv1by1<usize>> for usize
Source§fn div_exact_assign(&mut self, d: usize, pre: &PreMulInv1by1<usize>) -> bool
fn div_exact_assign(&mut self, d: usize, pre: &PreMulInv1by1<usize>) -> bool
Check if d divides self with the help of the precomputation. If d divides self,
self is replaced by the quotient and true is returned.
impl<T: Eq> Eq for PreMulInv1by1<T>
Source§impl<T: PartialEq> PartialEq for PreMulInv1by1<T>
impl<T: PartialEq> PartialEq for PreMulInv1by1<T>
impl<T: PartialEq> StructuralPartialEq for PreMulInv1by1<T>
Auto Trait Implementations§
impl<T> Freeze for PreMulInv1by1<T>where
T: Freeze,
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> UnsafeUnpin for PreMulInv1by1<T>where
T: UnsafeUnpin,
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