Skip to main content

ChainSt

Trait ChainSt 

Source
pub trait ChainSt: FunctorSt {
    // Required method
    fn chain_st<A: 'static, B: 'static>(
        fa: Self::Of<A>,
        f: impl Fn(A) -> Self::Of<B> + 'static,
    ) -> Self::Of<B>;
}
Expand description

Chain (monadic bind) with 'static bounds on type parameters.

Required Methods§

Source

fn chain_st<A: 'static, B: 'static>( fa: Self::Of<A>, f: impl Fn(A) -> Self::Of<B> + 'static, ) -> Self::Of<B>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ChainSt for IdentityF

Source§

fn chain_st<A: 'static, B: 'static>(fa: A, f: impl Fn(A) -> B + 'static) -> B

Source§

impl ChainSt for OptionF

Source§

fn chain_st<A: 'static, B: 'static>( fa: Option<A>, f: impl Fn(A) -> Option<B> + 'static, ) -> Option<B>

Source§

impl ChainSt for VecF

Available on crate features std or alloc only.
Source§

fn chain_st<A: 'static, B: 'static>( fa: Vec<A>, f: impl Fn(A) -> Vec<B> + 'static, ) -> Vec<B>

Source§

impl<E: 'static> ChainSt for ResultF<E>

Source§

fn chain_st<A: 'static, B: 'static>( fa: Result<A, E>, f: impl Fn(A) -> Result<B, E> + 'static, ) -> Result<B, E>

Implementors§

Source§

impl<E: 'static, M: ChainSt + ApplicativeSt> ChainSt for ExceptTF<E, M>

Source§

impl<E: Clone + 'static, M: ChainSt + 'static> ChainSt for ReaderTF<E, M>

Source§

impl<S: Clone + 'static, M: ChainSt + 'static> ChainSt for StateTF<S, M>

Source§

impl<W: Semigroup + Clone + 'static, M: ChainSt + FunctorSt> ChainSt for WriterTF<W, M>