pub trait AsBytes {
    fn as_bytes(&self) -> &[u8]Notable traits for &mut [u8]impl Write for &mut [u8]impl Read for &[u8];
}
Expand description

Helper trait for types that can be viewed as a byte slice

Required Methods

casts the input type to a byte slice

Implementations on Foreign Types

Implementors