Trait futures_util::fns::FnOnce1

source ·
pub trait FnOnce1<A> {
    type Output;

    // Required method
    fn call_once(self, arg: A) -> Self::Output;
}

Required Associated Types§

Required Methods§

source

fn call_once(self, arg: A) -> Self::Output

Implementors§

source§

impl<'a, F, T, E> FnOnce1<&'a Result<T, E>> for InspectErrFn<F>where F: FnOnce1<&'a E, Output = ()>,

§

type Output = ()

source§

impl<'a, F, T, E> FnOnce1<&'a Result<T, E>> for InspectOkFn<F>where F: FnOnce1<&'a T, Output = ()>,

§

type Output = ()

source§

impl<A, E> FnOnce1<A> for OkFn<E>

§

type Output = Result<A, E>

source§

impl<A, T> FnOnce1<A> for IntoFn<T>where A: Into<T>,

§

type Output = T

source§

impl<F, A> FnOnce1<A> for InspectFn<F>where F: for<'a> FnOnce1<&'a A, Output = ()>,

§

type Output = A

source§

impl<F, G, A> FnOnce1<A> for ChainFn<F, G>where F: FnOnce1<A>, G: FnOnce1<F::Output>,

§

type Output = <G as FnOnce1<<F as FnOnce1<A>>::Output>>::Output

source§

impl<F, T, E> FnOnce1<Result<T, E>> for MapErrFn<F>where F: FnOnce1<E>,

§

type Output = Result<T, <F as FnOnce1<E>>::Output>

source§

impl<F, T, E> FnOnce1<Result<T, E>> for MapOkFn<F>where F: FnOnce1<T>,

§

type Output = Result<<F as FnOnce1<T>>::Output, E>

source§

impl<F, T, E> FnOnce1<Result<T, E>> for UnwrapOrElseFn<F>where F: FnOnce1<E, Output = T>,

§

type Output = T

source§

impl<T> FnOnce1<Result<T, T>> for MergeResultFn

§

type Output = T

source§

impl<T, A, R> FnOnce1<A> for Twhere T: FnOnce(A) -> R,

§

type Output = R

source§

impl<T, Item> FnOnce1<&Item> for NextIfEqFn<'_, T, Item>where T: ?Sized, Item: PartialEq<T>,

§

type Output = bool