Struct core::cell::Cell[src]
pub struct Cell<T> {
// some fields omitted
}A mutable memory location that admits only Copy data.
Methods
impl<T: Copy> Cell<T>
fn new(value: T) -> Cell<T>
Creates a new Cell containing the given value.
fn get(&self) -> T
Returns a copy of the contained value.
fn set(&self, value: T)
Sets the contained value.