pub trait Iterative<'a>: 'a + Send + Sized {
    type B: 'a + Send;
    type T: ?Sized + WeakFunctor<'a>;

    // Required method
    fn next(self) -> IterativeWrapped<'a, Self>;
}
Expand description

Value passed to Monad::iterate.

Required Associated Types§

source

type B: 'a + Send

source

type T: ?Sized + WeakFunctor<'a>

Corresponding WeakFunctor.

Required Methods§

source

fn next(self) -> IterativeWrapped<'a, Self>

Get next state.

Implementors§

source§

impl<'a, T: ?Sized + Functor<'a>, A: 'a + Send, B: 'a + Send, F: 'a + Send + FnMut(A) -> T::F<ControlFlow<B, A>>> Iterative<'a> for BindableMut<T, A, B, F>

§

type B = B

§

type T = T