Struct qcell::LCell [−][src]
pub struct LCell<'id, T: ?Sized> { /* fields omitted */ }
Expand description
Cell whose contents are owned (for borrowing purposes) by a
LCellOwner
.
To borrow from this cell, use the borrowing calls on the
LCellOwner
instance that owns it, i.e. that shares the same
Rust lifetime.
See also crate documentation.
Implementations
Borrow contents of this cell immutably (read-only). Many
LCell
instances can be borrowed immutably at the same time
from the same owner.
Borrow contents of this cell mutably (read-write). Only one
LCell
at a time can be borrowed from the owner using this
call. The returned reference must go out of scope before
another can be borrowed. To mutably borrow from two or three
cells at the same time, see LCellOwner::rw2
or
LCellOwner::rw3
.