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 apply<A, B, Func>( f_ab: <Self as HKT>::Type<Func>, f_a: <Self as HKT>::Type<A>, ) -> <Self as HKT>::Type<B>
where A: Satisfies<<Self as HKT>::Constraint> + Clone, B: Satisfies<<Self as HKT>::Constraint>, Func: Satisfies<<Self as HKT>::Constraint> + FnMut(A) -> B,

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 A: Satisfies<<Self as HKT>::Constraint>, B: Satisfies<<Self as HKT>::Constraint>, 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 Constraint = NoConstraint

The constraint on inner types. Use NoConstraint for fully polymorphic.
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>). Read more
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 A: Satisfies<<Self as HKT>::Constraint>, B: Satisfies<<Self as HKT>::Constraint>, 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
Source§

fn join<A>(m_m_a: <F as HKT>::Type<<F as HKT>::Type<A>>) -> <F as HKT>::Type<A>
where A: Satisfies<<F as HKT>::Constraint>, <F as HKT>::Type<A>: Satisfies<<F as HKT>::Constraint>,

Flatten a nested structure into a single layer. Read more
Source§

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

Source§

fn pure<T>(value: T) -> <Self as HKT>::Type<T>
where T: Satisfies<<Self as HKT>::Constraint>,

Lifts a pure value into the context F::Type<T>. 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, F> AliasFunctor<F> for T
where T: Functor<F>, F: HKT,

Source§

fn transform<A, B, Func>( m_a: <F as HKT>::Type<A>, f: Func, ) -> <F as HKT>::Type<B>
where A: Satisfies<<F as HKT>::Constraint>, B: Satisfies<<F as HKT>::Constraint>, Func: FnMut(A) -> B,

Alias for fmap. Transforms the value inside a container.
Source§

impl<T, F> AliasMonad<F> for T
where T: Monad<F>, F: HKT,

Source§

fn chain<A, B, Func>(m_a: <F as HKT>::Type<A>, f: Func) -> <F as HKT>::Type<B>
where A: Satisfies<<F as HKT>::Constraint>, B: Satisfies<<F as HKT>::Constraint>, Func: FnMut(A) -> <F as HKT>::Type<B>,

Alias for bind. Chains a computation, flattening the result.
Source§

fn flatten<A>( m_m_a: <F as HKT>::Type<<F as HKT>::Type<A>>, ) -> <F as HKT>::Type<A>
where A: Satisfies<<F as HKT>::Constraint>, <F as HKT>::Type<A>: Satisfies<<F as HKT>::Constraint>,

Alias for join. Flattens a nested container.
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> Satisfies<NoConstraint> for T