Struct vcell::VolatileCell
[−]
[src]
pub struct VolatileCell<T> { /* fields omitted */ }
Methods
impl<T> VolatileCell<T>
[src]
pub fn new(value: T) -> Self
[src]
Creates a new VolatileCell
containing the given value
NOTE A const fn
variant is available under the "const-fn" Cargo
feature
pub fn get(&self) -> T where
T: Copy,
[src]
T: Copy,
Returns a copy of the contained value
pub fn set(&self, value: T) where
T: Copy,
[src]
T: Copy,
Sets the contained value