[−][src]Trait lazy_bytes_cast::slice::AsByteSlice
Trait which should be implemented for types that are safe to treat as byte
While it is possible to consider all types as bytes, it doesn't make sense for some (e.g. Vec
)
Provided methods
fn as_slice(&self) -> &[u8]
Access value as slice of bytes
fn as_slice_mut(&mut self) -> &mut [u8]
Access value as mutable slice of bytes