Struct rsa_cortex_m4::numbers::Array[][src]

#[repr(C)]pub struct Array<const D: usize, const E: usize, const L: usize> { /* fields omitted */ }

Array of Unsigned.

Implementations

impl<const D: usize, const E: usize, const L: usize> Array<D, E, L>[src]

pub fn wrapping_sub_assign<T: Number>(&mut self, subtrahend: &T)[src]

impl<const D: usize> Array<D, E, 2_usize>[src]

pub fn into_long(self) -> Long<D>[src]

pub fn as_long(&self) -> &Long<D>[src]

impl<const D: usize, const E: usize, const L: usize> Array<D, E, L>[src]

Trait methods as inherent methods, for convenience.

pub fn from_slice(slice: &[Digit]) -> Self[src]

pub fn try_from_slice(slice: &[Digit]) -> Result<Self>[src]

pub fn leading_digit(&self) -> Option<Digit>[src]

pub fn significant_digits(&self) -> &[Digit][src]

pub fn to_unsigned<const M: usize, const N: usize>(
    &self
) -> Result<Unsigned<M, N>>
[src]

impl<const D: usize, const E: usize, const L: usize> Array<D, E, L>[src]

pub fn to_bytes(&self) -> BigEndian<D, E, L>[src]

Return buffer that dereferences as big-endian bytes.

Trait Implementations

impl<const D: usize, const E: usize, const L: usize> Clone for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> Debug for Array<D, E, L>[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

TODO: Do we want debug output to be big-endian bytes (as currently implemented)? Or stick with internal representation?

impl<const D: usize, const E: usize, const L: usize> Default for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> Deref for Array<D, E, L>[src]

type Target = [Digit]

The resulting type after dereferencing.

impl<const D: usize, const E: usize, const L: usize> DerefMut for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> Eq for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> Number for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> NumberMut for Array<D, E, L>[src]

impl<T, const D: usize, const E: usize, const L: usize> PartialEq<T> for Array<D, E, L> where
    T: Number
[src]

impl<T, const D: usize, const E: usize, const L: usize> PartialOrd<T> for Array<D, E, L> where
    T: Number
[src]

impl<'a, const D: usize, const E: usize, const F: usize, const G: usize, const L: usize> Rem<&'a Unsigned<F, G>> for &'a Array<D, E, L>[src]

type Output = Unsigned<F, G>

The resulting type after applying the % operator.

impl<const D: usize, const E: usize, const L: usize> Shl<usize> for &Array<D, E, L>[src]

type Output = Array<D, E, L>

The resulting type after applying the << operator.

impl<const D: usize, const E: usize, const L: usize> ShlAssign<usize> for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> Shr<usize> for &Array<D, E, L>[src]

type Output = Array<D, E, L>

The resulting type after applying the >> operator.

impl<const D: usize, const E: usize, const L: usize> ShrAssign<usize> for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> StructuralEq for Array<D, E, L>[src]

Auto Trait Implementations

impl<const D: usize, const E: usize, const L: usize> Send for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> Sync for Array<D, E, L>[src]

impl<const D: usize, const E: usize, const L: usize> Unpin for Array<D, E, L>[src]

Blanket Implementations

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

impl<T> Bits for T where
    T: Number
[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> Same<T> for T[src]

type Output = T

Should always be Self

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.