Method lrs::share::RefCell::new

Creates a new RefCell.

Syntax

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

Arguments

NameDescription
data

The initial datum stored in the cell.