pub struct Observation<ObservableState> {
pub obs_type: ObservationType,
pub state: ObservableState,
}
Fields§
§obs_type: ObservationType
§state: ObservableState
Trait Implementations§
Source§impl<ObservableState: Debug> Debug for Observation<ObservableState>
impl<ObservableState: Debug> Debug for Observation<ObservableState>
Source§impl<ObservableState> Deref for Observation<ObservableState>
impl<ObservableState> Deref for Observation<ObservableState>
impl<State: Debug + PartialEq + Eq> Eq for Observation<State>
Auto Trait Implementations§
impl<ObservableState> Freeze for Observation<ObservableState>where
ObservableState: Freeze,
impl<ObservableState> RefUnwindSafe for Observation<ObservableState>where
ObservableState: RefUnwindSafe,
impl<ObservableState> Send for Observation<ObservableState>where
ObservableState: Send,
impl<ObservableState> Sync for Observation<ObservableState>where
ObservableState: Sync,
impl<ObservableState> Unpin for Observation<ObservableState>where
ObservableState: Unpin,
impl<ObservableState> UnwindSafe for Observation<ObservableState>where
ObservableState: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.