Method in cell · Ref coil-stdlib

Ref::get

pub fn get() -> T
Import
use cell::{Ref};
Source: src/cell.hy

Current value.

Called on a Ref value as value.get(…).

Returns#

T

See also#

  • Ref: A shared, mutable box holding one T.
  • Ref::new: New cell holding value.
  • Ref::set: Store value.
  • Ref::replace: Store value and return the previous one.
  • Ref::update: Store f(current) and return the new value.
↑ ↓ navigate ↵ open