Struct dvcompute::simulation::composite::Cons [−][src]
pub struct Cons<F, T> { /* fields omitted */ }
Expand description
Allows constructing the Composite
computation by the specified function.
Trait Implementations
impl<F, T> Composite for Cons<F, T> where
F: FnOnce(DisposableBox, &Point<'_>) -> Result<(T, DisposableBox)>,
impl<F, T> Composite for Cons<F, T> where
F: FnOnce(DisposableBox, &Point<'_>) -> Result<(T, DisposableBox)>,
type Item = T
type Item = T
The type of the item that is returned in the current modeling time.
Bind the current computation with its continuation within the resulting computation.
Map the current computation using the specified transform.
Zip the current computation with another one within the resulting computation.
The function application.
Convert into a boxed value.
Run the computation by the specified initial Disposable
object.
Auto Trait Implementations
impl<F, T> RefUnwindSafe for Cons<F, T> where
F: RefUnwindSafe,
T: RefUnwindSafe,
impl<F, T> UnwindSafe for Cons<F, T> where
F: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Composite = M
type Composite = M
The target computation.
Convert to the Composite
computation.