Struct rsa_cortex_m4::numbers::BigEndian[][src]

#[repr(transparent)]pub struct BigEndian<const D: usize, const E: usize, const L: usize>(_);

Representation of Unsigned as big-endian bytes.

RefCast is not what we want, as &BigEndian is big-endian, unlike &Unsigned which is little-endian!

Maybe rename to BigEndianBytes

Implementations

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

pub fn as_bytes(&self) -> &[u8][src]

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

pub fn trimmed(&self) -> &[u8][src]

Trait Implementations

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

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

type Target = [u8]

The resulting type after dereferencing.

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

Auto Trait Implementations

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

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

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

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> 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.