pub struct CellSetting<T>(/* private fields */);Expand description
A setting implemented using Cell
The capability of a Cell is to allow interior mutability. This is exactly the behavior needed to implement a setting trat object for integers of float numbers.
Trait Implementations§
Source§impl<T: Default> Default for CellSetting<T>
impl<T: Default> Default for CellSetting<T>
Source§fn default() -> CellSetting<T>
fn default() -> CellSetting<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> !Freeze for CellSetting<T>
impl<T> !RefUnwindSafe for CellSetting<T>
impl<T> Send for CellSetting<T>where
T: Send,
impl<T> !Sync for CellSetting<T>
impl<T> Unpin for CellSetting<T>where
T: Unpin,
impl<T> UnwindSafe for CellSetting<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