FuncOnce

Trait FuncOnce 

pub trait FuncOnce<Args: Tuple> {
    type Output;

    // Required method
    fn call_once(self, args: Args) -> Self::Output;

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

Required Associated Types§

type Output

Required Methods§

fn call_once(self, args: Args) -> Self::Output

Provided Methods§

fn bind<B>(self, arg: B) -> BindFn<B, Self>
where Self: Sized,

Available on crate feature func-bind only.

Implementors§

§

impl<'a, B: 'a, F, O, T> FuncOnce<(T₁, T₂, …, Tₙ)> for BindFn<B, F>
where F: FuncOnce<(B, T), Output = O>,

Available on crate feature func-bind only.

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

§

type Output = O

§

impl<B, F, O, T> FuncOnce<(T₁, T₂, …, Tₙ)> for BindFnMut<B, F>
where for<'b> F: FuncOnce<(&'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

§

type Output = O

§

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

Available on crate feature func-bind only.

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

§

type Output = O

§

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

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

§

type Output = O