Struct dark_integers::MLUInt[][src]

pub struct MLUInt<T: LimbType, const N: usize>(_);

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.

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.

impl<T: LimbType + CarryOperations, const N: usize> One for MLUInt<T, N>[src]

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

impl<T, const N: usize> Send for MLUInt<T, N> where
    T: Send

impl<T, const N: usize> Sync for MLUInt<T, N> where
    T: Sync

impl<T, const N: usize> Unpin for MLUInt<T, N> where
    T: Unpin

impl<T, const N: usize> UnwindSafe for MLUInt<T, N> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.