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
fn as_bytes(&self) -> &[u8]
Represent a pointer to a type as an array of bytes
unsafe fn as_bytes_mut(&mut self) -> &mut [u8]
Represent a mutable pointer to a type as a mutable array of bytes