pub struct StateCell<T> { /* private fields */ }
Expand description
Track change of value and signal to StateContext
.
This struct has no method and implements Deref
, DerefMut
.
When inner value is mutable dereferenced, it is marked changed and send signal.
This will also send signal when the cell is constructed or dropped.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for StateCell<T>where
T: Freeze,
impl<T> RefUnwindSafe for StateCell<T>where
T: RefUnwindSafe,
impl<T> Send for StateCell<T>where
T: Send,
impl<T> Sync for StateCell<T>where
T: Sync,
impl<T> Unpin for StateCell<T>where
T: Unpin,
impl<T> UnwindSafe for StateCell<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