Trait as_with_bytes::AsBytes
[−]
[src]
pub trait AsBytes { fn as_bytes<'a>(&'a self) -> &'a [u8]; }
A trait used for converting into bytes.
Required Methods
fn as_bytes<'a>(&'a self) -> &'a [u8]
Returns a byte slice representation of self
.