pub struct Cons<F, M, T> { /* private fields */ }Expand description
Allows constructing the Observer computation by the specified function.
Trait Implementations§
Source§impl<F, M, T> Observer for Cons<F, M, T>
impl<F, M, T> Observer for Cons<F, M, T>
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) -> ObserverBox<Self::Message, Self::Item>
fn into_boxed(self) -> ObserverBox<Self::Message, Self::Item>
Convert into a boxed value.
Auto Trait Implementations§
impl<F, M, T> Freeze for Cons<F, M, T>where
F: Freeze,
impl<F, M, T> RefUnwindSafe for Cons<F, M, T>
impl<F, M, T> Send for Cons<F, M, T>
impl<F, M, T> Sync for Cons<F, M, T>
impl<F, M, T> Unpin for Cons<F, M, T>
impl<F, M, T> UnwindSafe for Cons<F, M, T>
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§impl<M> IntoObserver for Mwhere
M: Observer,
impl<M> IntoObserver for Mwhere
M: Observer,
Source§type Message = <M as Observer>::Message
type Message = <M as Observer>::Message
The type of messages that are processed by the observer.
Source§fn into_observer(self) -> <M as IntoObserver>::Observer
fn into_observer(self) -> <M as IntoObserver>::Observer
Convert to the
Observer computation.