Struct futures_util::fns::ChainFn

source ·
pub struct ChainFn<F, G>(F, G);

Tuple Fields§

§0: F§1: G

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>

Auto Trait Implementations§

§

impl<F, G> Freeze for ChainFn<F, G>
where F: Freeze, G: Freeze,

§

impl<F, G> RefUnwindSafe for ChainFn<F, G>

§

impl<F, G> Send for ChainFn<F, G>
where F: Send, G: Send,

§

impl<F, G> Sync for ChainFn<F, G>
where F: Sync, G: Sync,

§

impl<F, G> Unpin for ChainFn<F, G>
where F: Unpin, G: Unpin,

§

impl<F, G> UnwindSafe for ChainFn<F, G>
where F: UnwindSafe, G: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.