pub struct Context<T>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<T> SignalBase<T> for Context<T>
impl<T> SignalBase<T> for Context<T>
Source§impl<T> SignalGetter<T> for Context<T>where
T: Clone + 'static,
impl<T> SignalGetter<T> for Context<T>where
T: Clone + 'static,
Source§impl<T> SignalSetter<T> for Context<T>where
T: PartialEq + 'static,
impl<T> SignalSetter<T> for Context<T>where
T: PartialEq + 'static,
Source§impl<T> SignalUpdater<T> for Context<T>where
T: 'static,
impl<T> SignalUpdater<T> for Context<T>where
T: 'static,
Source§fn update<U>(&self, updater: impl FnOnce(&mut T) -> U) -> U
fn update<U>(&self, updater: impl FnOnce(&mut T) -> U) -> U
Updates the signal value without cloning it using the provided updater function and notifies all dependencies.
This will happen, no matter if the value acually changed or not. Read more
Source§fn set_unchecked(&self, value: impl Into<T>)
fn set_unchecked(&self, value: impl Into<T>)
Sets the value of the signal and notifies all its dependencies. Read more
impl<T> Copy for Context<T>
impl<T: Eq> Eq for Context<T>
impl<T> StructuralPartialEq for Context<T>
Auto Trait Implementations§
impl<T> Freeze for Context<T>
impl<T> RefUnwindSafe for Context<T>where
T: RefUnwindSafe,
impl<T> Send for Context<T>where
T: Send,
impl<T> Sync for Context<T>where
T: Sync,
impl<T> Unpin for Context<T>where
T: Unpin,
impl<T> UnsafeUnpin for Context<T>
impl<T> UnwindSafe for Context<T>where
T: 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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.