Trait FnOnce

Source
pub trait FnOnce<Args> {
    type Output;

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

A version of the call operator that takes a by-value receiver.

This is implemented for:

  • std::ops::FnOnce() -> Output
  • std::ops::FnOnce(a: A) -> Output
  • std::ops::FnOnce(a: A, b: B) -> Output
  • std::ops::FnOnce(a: A, b: B, c: C) -> Output
  • std::ops::FnOnce(a: A, b: B, c: C, d: D) -> Output
  • std::ops::FnOnce(a: A, b: B, c: C, d: D, e: E) -> Output

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<F, A, B, C, D, E, Output> FnOnce<(A, B, C, D, E)> for F
where F: FnOnce(A, B, C, D, E) -> Output,

Source§

type Output = Output

Source§

impl<F, A, B, C, D, Output> FnOnce<(A, B, C, D)> for F
where F: FnOnce(A, B, C, D) -> Output,

Source§

type Output = Output

Source§

impl<F, A, B, C, Output> FnOnce<(A, B, C)> for F
where F: FnOnce(A, B, C) -> Output,

Source§

type Output = Output

Source§

impl<F, A, B, Output> FnOnce<(A, B)> for F
where F: FnOnce(A, B) -> Output,

Source§

type Output = Output

Source§

impl<F, A, Output> FnOnce<(A,)> for F
where F: FnOnce(A) -> Output,

Source§

type Output = Output

Source§

impl<F, Output> FnOnce<()> for F
where F: FnOnce() -> Output,

Source§

type Output = Output