Struct dvcompute::simulation::observable::FilterC
source · pub struct FilterC<M, U, F> { /* private fields */ }
Expand description
The monadic filter for the Observable
computation.
Trait Implementations§
source§impl<M, U, F> Observable for FilterC<M, U, F>
impl<M, U, F> Observable for FilterC<M, U, F>
§type Message = <M as Observable>::Message
type Message = <M as Observable>::Message
The type of messages to notify in the current modeling time.
source§fn subscribe<O>(self, observer: O) -> EventBox<DisposableBox>
fn subscribe<O>(self, observer: O) -> EventBox<DisposableBox>
Subscribe the observer.
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 mapc<U, B, F>(self, f: F) -> MapC<Self, U, B, F>
fn mapc<U, B, F>(self, f: F) -> MapC<Self, U, B, F>
Map the current computation using the specified transform computation.
source§fn merge<U>(self, other: U) -> Merge<Self, U>
fn merge<U>(self, other: U) -> Merge<Self, U>
Merge the current computation with another one within the resulting computation.
source§fn into_boxed(self) -> ObservableBox<Self::Message>where
Self: Sized + 'static,
fn into_boxed(self) -> ObservableBox<Self::Message>where
Self: Sized + 'static,
Convert into a boxed value.
Auto Trait Implementations§
impl<M, U, F> Freeze for FilterC<M, U, F>
impl<M, U, F> RefUnwindSafe for FilterC<M, U, F>
impl<M, U, F> Send for FilterC<M, U, F>
impl<M, U, F> Sync for FilterC<M, U, F>
impl<M, U, F> Unpin for FilterC<M, U, F>
impl<M, U, F> UnwindSafe for FilterC<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<M> IntoObservable for Mwhere
M: Observable,
impl<M> IntoObservable for Mwhere
M: Observable,
§type Observable = M
type Observable = M
The target computation.
§type Message = <M as Observable>::Message
type Message = <M as Observable>::Message
The type of messages about which the computation notifies.
source§fn into_observable(self) -> <M as IntoObservable>::Observable
fn into_observable(self) -> <M as IntoObservable>::Observable
Convert to the
Observable
computation.