pub trait ApplyMut<T> {
type Cont<_T>;
// Required method
fn apply_mut<'a, F>(&'a mut self, f: F)
where T: 'a,
F: FnMut(T) -> T;
}Expand description
The ApplyMut trait mutates the each element of the container, in-place, using the given
function.
Required Associated Types§
Required Methods§
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.