Method lrs::share::Cell::new

Creates a new cell.

Syntax

impl<T> Cell<T> {
    fn new(data: T) -> Cell<T>
}

Arguments

NameDescription
data

The datum initially contained in the cell.