Trait domain::base::octets::OctetsExt [−][src]
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.
Required methods
fn truncate(&mut self, len: usize)
[src]
Truncate the sequence to len
octets.
If len
is larger than the length of the sequence, nothing happens.