Type Alias futures_util::fns::MapOkOrElseFn

source ·
pub(crate) type MapOkOrElseFn<F, G> = ChainFn<MapOkFn<F>, ChainFn<MapErrFn<G>, MergeResultFn>>;

Aliased Type§

struct MapOkOrElseFn<F, G>(MapOkFn<F>, ChainFn<MapErrFn<G>, MergeResultFn>);

Fields§

§0: MapOkFn<F>§1: ChainFn<MapErrFn<G>, MergeResultFn>

Trait Implementations§

source§

impl<F: Clone, G: Clone> Clone for ChainFn<F, G>

source§

fn clone(&self) -> ChainFn<F, G>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<F: Debug, G: Debug> Debug for ChainFn<F, G>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<F: Default, G: Default> Default for ChainFn<F, G>

source§

fn default() -> ChainFn<F, G>

Returns the “default value” for a type. Read more
source§

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

source§

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

source§

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

source§

fn call_mut(&mut self, arg: A) -> Self::Output

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§

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

source§

impl<F: Copy, G: Copy> Copy for ChainFn<F, G>