Ref::new
pub static fn new(T value) -> Ref<T> Import
Source: use cell::{Ref}; src/cell.hy New cell holding value.
Parameters#
| Name | Type |
|---|---|
value | T |
Returns#
Ref<T>
See also#
Ref: A shared, mutable box holding oneT.Ref::get: Current value.Ref::set: Storevalue.Ref::replace: Storevalueand return the previous one.Ref::update: Storef(current)and return the new value.