Skip to main content

FromBytesExt

Trait FromBytesExt 

Source
pub trait FromBytesExt: ByteArray + FromBytes {
    // Provided methods
    fn ref_and_rest_from(bytes: &[u8]) -> Option<(&Self, &[u8])>
       where Self: Sized { ... }
    fn ref_from_array(bytes: &Self::ByteArray) -> &Self
       where Self: Sized { ... }
    fn from_array(bytes: Self::ByteArray) -> Self
       where Self: Copy + Sized { ... }
}

Provided Methods§

Source

fn ref_and_rest_from(bytes: &[u8]) -> Option<(&Self, &[u8])>
where Self: Sized,

Source

fn ref_from_array(bytes: &Self::ByteArray) -> &Self
where Self: Sized,

Source

fn from_array(bytes: Self::ByteArray) -> Self
where Self: Copy + Sized,

Implementors§