ApplyMut

Trait ApplyMut 

Source
pub trait ApplyMut<Rhs> {
    type Output;

    // Required method
    fn apply_mut(&mut self, rhs: Rhs) -> Self::Output;
}
Expand description

The ApplyMut trait defines an interface for objects capable of mutably borrowing themselves to apply the given function onto themselves or their elements to produce some output.

Required Associated Types§

Required Methods§

Source

fn apply_mut(&mut self, rhs: Rhs) -> Self::Output

Implementations on Foreign Types§

Source§

impl<U, V, F> ApplyMut<F> for Option<U>
where F: FnMut(&mut U) -> V,

Source§

type Output = Option<V>

Source§

fn apply_mut(&mut self, rhs: F) -> <Option<U> as ApplyMut<F>>::Output

Implementors§