pub struct AndThen<M, U, F> { /* private fields */ }Expand description
The monadic bind for the Composite computation.
Trait Implementations§
Source§impl<M, U, F> Composite for AndThen<M, U, F>
impl<M, U, F> Composite for AndThen<M, U, F>
Source§type Item = <U as Composite>::Item
type Item = <U as Composite>::Item
The type of the item that is returned in the current modeling time.
Source§fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
Bind the current computation with its continuation within the resulting computation.
Source§fn map<B, F>(self, f: F) -> Map<Self, B, F>
fn map<B, F>(self, f: F) -> Map<Self, B, F>
Map the current computation using the specified transform.
Source§fn zip<U>(self, other: U) -> Zip<Self, U>
fn zip<U>(self, other: U) -> Zip<Self, U>
Zip the current computation with another one within the resulting computation.
Source§fn into_boxed(self) -> CompositeBox<Self::Item>where
Self: Sized + 'static,
fn into_boxed(self) -> CompositeBox<Self::Item>where
Self: Sized + 'static,
Convert into a boxed value.
Auto Trait Implementations§
impl<M, U, F> Freeze for AndThen<M, U, F>
impl<M, U, F> RefUnwindSafe for AndThen<M, U, F>
impl<M, U, F> Send for AndThen<M, U, F>
impl<M, U, F> Sync for AndThen<M, U, F>
impl<M, U, F> Unpin for AndThen<M, U, F>
impl<M, U, F> UnwindSafe for AndThen<M, U, F>
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