Trait byte_conv::As [] [src]

pub trait As {
    fn as_bytes(&self) -> &[u8];
    unsafe fn as_bytes_mut(&mut self) -> &mut [u8];
}

A type which is representable as bytes

Required Methods

Represent a pointer to a type as an array of bytes

Represent a mutable pointer to a type as a mutable array of bytes

Implementors