pub trait OctetsExt: AsRef<[u8]> {
// Required method
fn truncate(&mut self, len: usize);
}
Expand description
An extension trait for octet sequences.
This trait collects some additional functionality that is not available
via the more general AsRef<[u8]>
. Currently, that is only truncating
the sequence to a given length.