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