Trait style::ShrinkIfNeeded

source ·
pub(crate) trait ShrinkIfNeeded {
    // Required method
    fn shrink_if_needed(&mut self);
}
Expand description

Shrink the capacity of the collection if needed.

Required Methods§

Implementations on Foreign Types§

source§

impl<T, H> ShrinkIfNeeded for HashSet<T, H>where T: Eq + Hash, H: BuildHasher,

source§

impl<K, V, H> ShrinkIfNeeded for HashMap<K, V, H>where K: Eq + Hash, H: BuildHasher,

Implementors§