pub struct Cons<I, F, M> { /* private fields */ }Expand description
Allows constructing a Block computation by the specified function.
Trait Implementations§
Source§impl<I, F, M> Block for Cons<I, F, M>
impl<I, F, M> Block for Cons<I, F, M>
Source§fn run(self, a: Self::Input) -> Run<Self::Input, Self::Output, Self>where
Self: Sized,
fn run(self, a: Self::Input) -> Run<Self::Input, Self::Output, Self>where
Self: Sized,
Run the computation by the specified input.
Source§fn and_then<A>(self, other: A) -> AndThen<Self, A>
fn and_then<A>(self, other: A) -> AndThen<Self, A>
Bind the current computation with its continuation within the resulting computation.
Auto Trait Implementations§
impl<I, F, M> Freeze for Cons<I, F, M>where
F: Freeze,
impl<I, F, M> RefUnwindSafe for Cons<I, F, M>
impl<I, F, M> Send for Cons<I, F, M>
impl<I, F, M> Sync for Cons<I, F, M>
impl<I, F, M> Unpin for Cons<I, F, M>
impl<I, F, M> UnsafeUnpin for Cons<I, F, M>where
F: UnsafeUnpin,
impl<I, F, M> UnwindSafe for Cons<I, F, M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more