[][src]Trait abin::ExcessShrink

pub trait ExcessShrink {
    fn shrink(len: usize, excess: usize) -> ShrinkResult;
}

Gives information whether the system should shrink a vector's excess (capacity - len).

Required methods

fn shrink(len: usize, excess: usize) -> ShrinkResult

Returns a result whether the vector should be shrunk.

excess: Vec::len() - Vec::capacity().

Loading content...

Implementors

impl ExcessShrink for DefaultExcessShrink[src]

impl ExcessShrink for NeverShrink[src]

Loading content...