pub struct Cell<S: Signal>(/* private fields */);Expand description
A wrapper around UnsafeCell, which allows us to reference a signal that might be modified.
For safety reasons, we don’t allow access to the pointer &mut S. Instead, the signal must be
read using the Signal methods, and modified using Cell::modify.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> !Freeze for Cell<S>
impl<S> !RefUnwindSafe for Cell<S>
impl<S> Send for Cell<S>where
S: Send,
impl<S> !Sync for Cell<S>
impl<S> Unpin for Cell<S>where
S: Unpin,
impl<S> UnwindSafe for Cell<S>where
S: 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