Skip to main content

shrink

Function shrink 

Source
fn shrink<T>(deque: &mut VecDeque<T>)
Expand description

Shrinks deque if it uses less than a quarter of its capacity. It keeps twice the length, which is what a push would grow it to.