ComposeF

Struct ComposeF 

Source
pub struct ComposeF<F: ?Sized, G: ?Sized>(/* private fields */);
Expand description

Composition for TypeFunctions, i.e. ApF<ComposeF<F, G>, T> == ApF<F, ApF<G, T>>

Trait Implementations§

Source§

impl<F, G, Arg: ?Sized> TypeFunction<Arg> for ComposeF<F, G>
where G: TypeFunction<Arg> + ?Sized, F: TypeFunction<G::Result> + ?Sized,

Source§

type Result = <F as TypeFunction<<G as TypeFunction<Arg>>::Result>>::Result

The type that Arg is mapped to by the implementor.

Auto Trait Implementations§

§

impl<F, G> Freeze for ComposeF<F, G>
where F: ?Sized, G: ?Sized,

§

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

§

impl<F, G> Send for ComposeF<F, G>
where F: Send + ?Sized, G: Send + ?Sized,

§

impl<F, G> Sync for ComposeF<F, G>
where F: Sync + ?Sized, G: Sync + ?Sized,

§

impl<F, G> Unpin for ComposeF<F, G>
where F: Unpin + ?Sized, G: Unpin + ?Sized,

§

impl<F, G> UnwindSafe for ComposeF<F, G>
where F: UnwindSafe + ?Sized, G: UnwindSafe + ?Sized,

Blanket Implementations§

Source§

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

Source§

type Alias = T

Always set to Self, but the type checker doesn’t reduce T::Alias to T.
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, U> TryFrom<U> for T
where U: Into<T>,

Source§

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>,

Source§

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.
Source§

impl<T, U> IsEqual<U> for T
where T: AliasSelf<Alias = U> + ?Sized, U: ?Sized,