PropagatingProcessWitness

Struct PropagatingProcessWitness 

Source
pub struct PropagatingProcessWitness<S, C>(/* private fields */);

Trait Implementations§

Source§

impl<S, C> Applicative<PropagatingProcessWitness<S, C>> for PropagatingProcessWitness<S, C>
where S: Clone + Default, C: Clone,

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<S, C> Functor<PropagatingProcessWitness<S, C>> for PropagatingProcessWitness<S, C>
where S: Clone, C: Clone,

Source§

fn fmap<A, B, Func>( m_a: <PropagatingProcessWitness<S, C> as HKT>::Type<A>, f: Func, ) -> <PropagatingProcessWitness<S, C> 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<S, C> HKT for PropagatingProcessWitness<S, C>

Source§

type Type<T> = CausalEffectPropagationProcess<T, S, C, CausalityError, EffectLog>

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<S, C> Monad<PropagatingProcessWitness<S, C>> for PropagatingProcessWitness<S, C>
where S: Clone + Default, C: Clone,

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<S, C> Freeze for PropagatingProcessWitness<S, C>

§

impl<S, C> RefUnwindSafe for PropagatingProcessWitness<S, C>

§

impl<S, C> Send for PropagatingProcessWitness<S, C>
where S: Send, C: Send,

§

impl<S, C> Sync for PropagatingProcessWitness<S, C>
where S: Sync, C: Sync,

§

impl<S, C> Unpin for PropagatingProcessWitness<S, C>
where S: Unpin, C: Unpin,

§

impl<S, C> UnwindSafe for PropagatingProcessWitness<S, C>
where S: UnwindSafe, C: 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.