pub trait RetainMutUnordered<T> {
// Required methods
fn truncate(&mut self, val: usize);
fn as_slice_mut(&mut self) -> &mut [T];
// Provided method
fn retain_mut_unordered<F>(&mut self, f: F)
where F: FnMut(&mut T) -> bool { ... }
}Expand description
Retain only elements that satisfy the predicate. May rearrange elements in the process.
Required Methods§
Provided Methods§
fn retain_mut_unordered<F>(&mut self, f: F)
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.