pub trait ByteArray: AsRef<[u8]> + AsMut<[u8]> + for<'a> TryFrom<&'a [u8], Error = ()> {
    const LEN: usize;
    fn from_slice(data: &[u8]) -> Result<Self, ()> { ... }
fn to_raw_vec(&self) -> Vec<u8>Notable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
    A: Allocator
{ ... }
fn as_slice(&self) -> &[u8]Notable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8] { ... } }
Expand description

Trait used for types that are really just a fixed-length array.

Associated Constants

The “length” of the values of this type, which is always the same.

Provided methods

A new instance from the given slice that should be Self::LEN bytes long.

Return a Vec<u8> filled with raw data.

Return a slice filled with raw data.

Implementors