[][src]Trait collectable::Truncate

pub trait Truncate {
    fn truncate(&mut self, len: usize);

Truncate the collection to the provided length.

Required methods

fn truncate(&mut self, len: usize)

Truncate this buffer to the given number of elements.

If len is bigger than the current number of elements (or the total capacity of the buffer) no changes are made to the contents.

Loading content...


Loading content...