Struct dark_integers::MLUInt [−][src]
Implementations
impl<T: LimbType, const N: usize> MLUInt<T, N>
[src]
pub const fn new(limbs: [T; N]) -> Self
[src]
pub fn from_be_bytes(bytes: [u8; N * T::SIZE]) -> Self
[src]
pub fn to_be_bytes(self) -> [u8; N * T::SIZE]
[src]
Trait Implementations
impl<T: LimbType + CarryOperations, const N: usize> Add<MLUInt<T, N>> for MLUInt<T, N>
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl<T: Clone + LimbType, const N: usize> Clone for MLUInt<T, N>
[src]
impl<T: Copy + LimbType, const N: usize> Copy for MLUInt<T, N>
[src]
impl<T: Debug + LimbType, const N: usize> Debug for MLUInt<T, N>
[src]
impl<T: LimbType + CarryOperations, const N: usize> Mul<MLUInt<T, N>> for MLUInt<T, N>
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, _other: Self) -> Self
[src]
impl<T: LimbType + CarryOperations, const N: usize> One for MLUInt<T, N>
[src]
fn one() -> Self
[src]
pub fn set_one(&mut self)
[src]
pub fn is_one(&self) -> bool where
Self: PartialEq<Self>,
[src]
Self: PartialEq<Self>,
impl<T: PartialEq + LimbType, const N: usize> PartialEq<MLUInt<T, N>> for MLUInt<T, N>
[src]
impl<T: LimbType, const N: usize> StructuralPartialEq for MLUInt<T, N>
[src]
impl<T: LimbType + CarryOperations, const N: usize> Zero for MLUInt<T, N>
[src]
Auto Trait Implementations
impl<T, const N: usize> RefUnwindSafe for MLUInt<T, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, const N: usize> Send for MLUInt<T, N> where
T: Send,
T: Send,
impl<T, const N: usize> Sync for MLUInt<T, N> where
T: Sync,
T: Sync,
impl<T, const N: usize> Unpin for MLUInt<T, N> where
T: Unpin,
T: Unpin,
impl<T, const N: usize> UnwindSafe for MLUInt<T, N> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,