Trait len_trait::LenMut
[−]
[src]
pub trait LenMut: Default + LenZero { fn truncate(&mut self, len: usize); }
A collection with a "mutable" length, i.e. a truncatable collection.
Truncating the collection must take O(1) time and space after all of the removed elements in the collection are dropped.
Required Methods
fn truncate(&mut self, len: usize)
Truncates the collection so that it is no greater than len
long.