pub struct ModMathValue<T>(pub T);Available on crate features
modmath and alloc only.Tuple Fields§
§0: TImplementations§
Source§impl<T> ModMathValue<T>
impl<T> ModMathValue<T>
pub fn from_inner(inner: T) -> Self
pub fn inner(&self) -> &T
Trait Implementations§
Source§impl<T: Clone> Clone for ModMathValue<T>
impl<T: Clone> Clone for ModMathValue<T>
Source§fn clone(&self) -> ModMathValue<T>
fn clone(&self) -> ModMathValue<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 moreSource§impl<T: Debug> Debug for ModMathValue<T>
impl<T: Debug> Debug for ModMathValue<T>
Source§impl<T> From<u8> for ModMathValue<T>where
T: ModMathInt,
impl<T> From<u8> for ModMathValue<T>where
T: ModMathInt,
Source§impl<T> IntegerResize for ModMathValue<T>where
T: ModMathInt,
impl<T> IntegerResize for ModMathValue<T>where
T: ModMathInt,
type Output = ModMathValue<T>
fn resize_unchecked(self, _at_least_bits_precision: u32) -> Self::Output
fn try_resize(self, at_least_bits_precision: u32) -> Option<Self::Output>
Source§impl<T: Ord> Ord for ModMathValue<T>
impl<T: Ord> Ord for ModMathValue<T>
Source§fn cmp(&self, other: &ModMathValue<T>) -> Ordering
fn cmp(&self, other: &ModMathValue<T>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for ModMathValue<T>
impl<T: PartialEq> PartialEq for ModMathValue<T>
Source§fn eq(&self, other: &ModMathValue<T>) -> bool
fn eq(&self, other: &ModMathValue<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<T: PartialOrd> PartialOrd for ModMathValue<T>
impl<T: PartialOrd> PartialOrd for ModMathValue<T>
Source§impl<T> UnsignedModularInt for ModMathValue<T>where
T: ModMathInt,
impl<T> UnsignedModularInt for ModMathValue<T>where
T: ModMathInt,
type Bytes = <T as FixedWidthUnsignedInt>::Bytes
fn leading_zeros(&self) -> u32
fn to_be_bytes(&self) -> Self::Bytes
fn to_be_bytes_trimmed_vartime(&self) -> Box<[u8]>
fn rem_vartime(&self, modulus: &NonZero<Self>) -> Self
fn as_nz_ref(&self) -> NonZero<Self>
fn bits(&self) -> u32
fn bits_precision(&self) -> u32
Source§impl<T> Zeroize for ModMathValue<T>where
T: Zeroize,
impl<T> Zeroize for ModMathValue<T>where
T: Zeroize,
impl<T: Copy> Copy for ModMathValue<T>
impl<T: Eq> Eq for ModMathValue<T>
impl<T> StructuralPartialEq for ModMathValue<T>
Auto Trait Implementations§
impl<T> Freeze for ModMathValue<T>where
T: Freeze,
impl<T> RefUnwindSafe for ModMathValue<T>where
T: RefUnwindSafe,
impl<T> Send for ModMathValue<T>where
T: Send,
impl<T> Sync for ModMathValue<T>where
T: Sync,
impl<T> Unpin for ModMathValue<T>where
T: Unpin,
impl<T> UnsafeUnpin for ModMathValue<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ModMathValue<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