pub trait Truncate { // Required method fn truncate(&mut self, len: u64) -> Result<()>; }
std
A trait for objects that can be truncated.
Truncates this object to the given length.