Struct num_modular::PreMulInv2by1
source · pub struct PreMulInv2by1<T> { /* private fields */ }
Expand description
A wrapper of Normalized2by1Divisor that can be used as a Reducer
Implementations§
source§impl PreMulInv2by1<u8>
impl PreMulInv2by1<u8>
source§impl PreMulInv2by1<u16>
impl PreMulInv2by1<u16>
source§impl PreMulInv2by1<u32>
impl PreMulInv2by1<u32>
source§impl PreMulInv2by1<u64>
impl PreMulInv2by1<u64>
source§impl PreMulInv2by1<usize>
impl PreMulInv2by1<usize>
source§impl<T> PreMulInv2by1<T>
impl<T> PreMulInv2by1<T>
Trait Implementations§
source§impl<T: Clone> Clone for PreMulInv2by1<T>
impl<T: Clone> Clone for PreMulInv2by1<T>
source§fn clone(&self) -> PreMulInv2by1<T>
fn clone(&self) -> PreMulInv2by1<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 PreMulInv2by1<T>
impl<T: Debug> Debug for PreMulInv2by1<T>
source§impl<T: PartialEq> PartialEq<PreMulInv2by1<T>> for PreMulInv2by1<T>
impl<T: PartialEq> PartialEq<PreMulInv2by1<T>> for PreMulInv2by1<T>
source§fn eq(&self, other: &PreMulInv2by1<T>) -> bool
fn eq(&self, other: &PreMulInv2by1<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Reducer<u16> for PreMulInv2by1<u16>
impl Reducer<u16> for PreMulInv2by1<u16>
source§impl Reducer<u32> for PreMulInv2by1<u32>
impl Reducer<u32> for PreMulInv2by1<u32>
source§impl Reducer<u64> for PreMulInv2by1<u64>
impl Reducer<u64> for PreMulInv2by1<u64>
source§impl Reducer<u8> for PreMulInv2by1<u8>
impl Reducer<u8> for PreMulInv2by1<u8>
source§impl Reducer<usize> for PreMulInv2by1<usize>
impl Reducer<usize> for PreMulInv2by1<usize>
source§fn inv(&self, target: usize) -> Option<usize>
fn inv(&self, target: usize) -> Option<usize>
Calculate target^-1 mod m in reduced form,
it may return None when there is no modular inverse.
fn add_in_place(&self, lhs: &mut T, rhs: &T)
fn sub_in_place(&self, lhs: &mut T, rhs: &T)
fn mul_in_place(&self, lhs: &mut T, rhs: &T)
impl<T: Copy> Copy for PreMulInv2by1<T>
impl<T: Eq> Eq for PreMulInv2by1<T>
impl<T> StructuralEq for PreMulInv2by1<T>
impl<T> StructuralPartialEq for PreMulInv2by1<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for PreMulInv2by1<T>where T: RefUnwindSafe,
impl<T> Send for PreMulInv2by1<T>where T: Send,
impl<T> Sync for PreMulInv2by1<T>where T: Sync,
impl<T> Unpin for PreMulInv2by1<T>where T: Unpin,
impl<T> UnwindSafe for PreMulInv2by1<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