FuncMut

Trait FuncMut 

pub trait FuncMut<Args: Tuple>: FuncOnce<Args> {
    // Required method
    fn call_mut(&mut self, args: Args) -> Self::Output;

    // Provided method
    fn bind_mut<B>(self, arg: B) -> BindFnMut<B, Self>
       where Self: Sized { ... }
}
Available on crate feature func only.

Required Methods§

fn call_mut(&mut self, args: Args) -> Self::Output

Provided Methods§

fn bind_mut<B>(self, arg: B) -> BindFnMut<B, Self>
where Self: Sized,

Available on crate feature func-bind only.

Implementors§

§

impl<'a, B: ?Sized + 'a, F, O, T> FuncMut<(T₁, T₂, …, Tₙ)> for BindFn<&'a B, F>
where F: FuncMut<(&'a B, T), Output = O>,

Available on crate feature func-bind only.

This trait is implemented for argument lists up to 20 items long

§

impl<'a, B: ?Sized + 'a, F, O, T> FuncMut<(T₁, T₂, …, Tₙ)> for BindFn<&'a mut B, F>
where F: for<'b> FuncMut<(&'b mut B, T), Output = O>,

Available on crate feature func-bind only.

This trait is implemented for argument lists up to 20 items long

§

impl<B, F, O, T> FuncMut<(T₁, T₂, …, Tₙ)> for BindFnMut<B, F>
where for<'b> F: FuncMut<(&'b mut B, T), Output = O>,

Available on crate feature func-bind only.

This trait is implemented for argument lists up to 20 items long

§

impl<B, F, O, T> FuncMut<(T₁, T₂, …, Tₙ)> for BindFnRef<B, F>
where for<'b> F: FuncMut<(&'b B, T), Output = O>,

Available on crate feature func-bind only.

This trait is implemented for argument lists up to 20 items long

§

impl<F, O, T> FuncMut<(T₁, T₂, …, Tₙ)> for F
where F: FnMut(T) -> O,

This trait is implemented for argument lists up to 20 items long