pub trait RetainMut<I> {
// Required method
fn retain_mut(&mut self, f: impl FnMut(&mut I) -> bool);
}Expand description
Helper trait to abstract over Vec and SmallVec in Managed::retain.
Required Methods§
Sourcefn retain_mut(&mut self, f: impl FnMut(&mut I) -> bool)
fn retain_mut(&mut self, f: impl FnMut(&mut I) -> bool)
Retains only the elements specified by the predicate.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.