Trait Truncate
Source pub trait Truncate {
// Required method
fn truncate(&mut self, len: usize);
}
Expand description
An octet sequence that can be shortened.
Truncate the sequence to len octets.
If len is larger than the length of the sequence, nothing happens.
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Source§Available on crate feature bytes only.
Source§Available on crate feature bytes only.
Source§Available on crate feature std only.
Source§Available on crate feature std only.
Source§Available on crate feature smallvec only.