GraphGeneratableEffectWitness

Struct GraphGeneratableEffectWitness 

Source
pub struct GraphGeneratableEffectWitness<E, L>(/* private fields */);
Expand description

HKT witness type for the graph generatable effect system.

This type is used internally by the HKT machinery to provide type-level evidence for the effect system’s structure.

Trait Implementations§

Source§

impl<E: Clone, L: Clone + Default + LogAppend> Applicative<GraphGeneratableEffectWitness<E, L>> for GraphGeneratableEffectWitness<E, L>

Source§

fn pure<T>(value: T) -> <Self as HKT>::Type<T>

Lifts a pure value into the minimal applicative context F::Type<T>. Read more
Source§

fn apply<A, B, Func>( f_ab: <Self as HKT>::Type<Func>, m_a: <Self as HKT>::Type<A>, ) -> <Self as HKT>::Type<B>
where Func: FnMut(A) -> B, A: Clone,

Applies a function wrapped in a context (f_ab) to a value wrapped in a context (f_a). Read more
Source§

impl<E: Clone, L: Clone> Functor<GraphGeneratableEffectWitness<E, L>> for GraphGeneratableEffectWitness<E, L>

Source§

fn fmap<A, B, Func>( m_a: <Self as HKT>::Type<A>, f: Func, ) -> <Self as HKT>::Type<B>
where Func: FnMut(A) -> B,

Applies a function f to the value inside the container m_a. Read more
Source§

impl<E, L> HKT for GraphGeneratableEffectWitness<E, L>

Source§

type Type<T> = GraphGeneratableEffect<T, E, L>

The Generic Associated Type (GAT) that represents the type constructor. The <T> is the “hole” in the type constructor (e.g., Option<T>).
Source§

impl<E, L> HKT3<E, L> for GraphGeneratableEffectWitness<E, L>

Source§

type Type<T> = GraphGeneratableEffect<T, E, L>

The GAT that represents the remaining type constructor. The resulting kind is * -> * (one hole <T> remaining). Read more
Source§

impl<E: Clone, L: Clone + Default + LogAppend> Monad<GraphGeneratableEffectWitness<E, L>> for GraphGeneratableEffectWitness<E, L>

Source§

fn bind<A, B, Func>( m_a: <Self as HKT>::Type<A>, f: Func, ) -> <Self as HKT>::Type<B>
where Func: FnMut(A) -> <Self as HKT>::Type<B>,

Chains a computation from an effectful value, flattening the result. This is the core sequencing operation of a Monad. Read more

Auto Trait Implementations§

§

impl<E, L> Freeze for GraphGeneratableEffectWitness<E, L>
where E: Freeze, L: Freeze,

§

impl<E, L> RefUnwindSafe for GraphGeneratableEffectWitness<E, L>

§

impl<E, L> Send for GraphGeneratableEffectWitness<E, L>
where E: Send, L: Send,

§

impl<E, L> Sync for GraphGeneratableEffectWitness<E, L>
where E: Sync, L: Sync,

§

impl<E, L> Unpin for GraphGeneratableEffectWitness<E, L>
where E: Unpin, L: Unpin,

§

impl<E, L> UnwindSafe for GraphGeneratableEffectWitness<E, L>
where E: UnwindSafe, L: 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, 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.