pub trait ApplyMut<T> {
type Cont<_T>;
// Required method
fn apply_mut<F>(&mut self, rhs: F) -> &mut Self::Cont<T>
where F: FnMut(&mut T);
}Expand description
The ApplyMut trait allows for in-place mapping of a mutable reference to a type T
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.