PropagatingEffectWitness

Struct PropagatingEffectWitness 

Source
pub struct PropagatingEffectWitness<E, L>(/* private fields */);

Trait Implementations§

Source§

impl Applicative<PropagatingEffectWitness<CausalityError, EffectLog>> for PropagatingEffectWitness<CausalityError, EffectLog>

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>, f_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 Functor<PropagatingEffectWitness<CausalityError, EffectLog>> for PropagatingEffectWitness<CausalityError, EffectLog>

Source§

fn fmap<A, B, Func>( m_a: <PropagatingEffectWitness<CausalityError, EffectLog> as HKT>::Type<A>, f: Func, ) -> <PropagatingEffectWitness<CausalityError, EffectLog> as HKT>::Type<B>
where Func: FnOnce(A) -> B,

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

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

Source§

type Type<T> = CausalEffectPropagationProcess<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 PropagatingEffectWitness<E, L>

Source§

type Type<T> = CausalEffectPropagationProcess<T, (), (), E, L>

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

impl Monad<PropagatingEffectWitness<CausalityError, EffectLog>> for PropagatingEffectWitness<CausalityError, EffectLog>

Source§

fn bind<A, B, Func>( m_a: <Self as HKT>::Type<A>, f: Func, ) -> <Self as HKT>::Type<B>
where Func: FnOnce(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 PropagatingEffectWitness<E, L>

§

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

§

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

§

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

§

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

§

impl<E, L> UnwindSafe for PropagatingEffectWitness<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.