Trait OverMut

Source
pub trait OverMut {
    // Provided method
    fn over_mut<F, Ret>(&mut self, f: F) -> Ret
       where F: FnOnce(&mut Self) -> Ret { ... }
}
Expand description

Transform by unique reference (&mut self)

Provided Methods§

Source

fn over_mut<F, Ret>(&mut self, f: F) -> Ret
where F: FnOnce(&mut Self) -> Ret,

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.

Implementors§

Source§

impl<T> OverMut for T