pub(crate) trait ShrinkIfNeeded {
// Required method
fn shrink_if_needed(&mut self);
}Expand description
Shrink the capacity of the collection if needed.
Required Methods§
fn shrink_if_needed(&mut self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".