Trait toad_common::array::Trunc
source · pub trait Truncwhere
Self: Sized,{
fn trunc(&mut self, len: usize);
}Expand description
Truncate this collection to a new length.
If self was shorter than len, nothing happens.
If self was longer, drops indices after len - 1.