Trait std::ops::FnOnce
[−]
[src]
pub trait FnOnce<Args> { type Output; extern "rust-call" fn call_once(self, args: Args) -> Self::Output; }
A version of the call operator that takes a by-value receiver.
Associated Types
Required Methods
extern "rust-call" fn call_once(self, args: Args) -> Self::Output
Unstable (
fn_traits
#29625)This is called when the call operator is used.
Implementors
impl<'a, A, R> FnOnce for Box<FnBox<A, Output=R> + 'a + Send>
impl<'a, A, R> FnOnce for Box<FnBox<A, Output=R> + 'a>
impl<R, F: FnOnce() -> R> FnOnce for AssertUnwindSafe<F>
impl<R, F: FnOnce() -> R> FnOnce for AssertRecoverSafe<F>