pub trait AsBytes {
// Required method
fn as_bytes(&self) -> &[u8] ⓘ;
}Expand description
A trait for types which represent a contiguous block of bytes, such as &[u8] or Vec<u8>.
pub trait AsBytes {
// Required method
fn as_bytes(&self) -> &[u8] ⓘ;
}A trait for types which represent a contiguous block of bytes, such as &[u8] or Vec<u8>.