pub struct PermTkn(/* private fields */);
Implementations§
Methods from Deref<Target = TLCellOwner<Ghost>>§
Sourcepub fn cell<T>(&self, value: T) -> TLCell<Q, T>
pub fn cell<T>(&self, value: T) -> TLCell<Q, T>
Create a new cell owned by this owner instance. See also
TLCell::new
.
Sourcepub fn ro<'a, T>(&'a self, tc: &'a TLCell<Q, T>) -> &'a Twhere
T: ?Sized,
pub fn ro<'a, T>(&'a self, tc: &'a TLCell<Q, T>) -> &'a Twhere
T: ?Sized,
Borrow contents of a TLCell
immutably (read-only). Many
TLCell
instances can be borrowed immutably at the same time
from the same owner.
Sourcepub fn rw<'a, T>(&'a mut self, tc: &'a TLCell<Q, T>) -> &'a mut Twhere
T: ?Sized,
pub fn rw<'a, T>(&'a mut self, tc: &'a TLCell<Q, T>) -> &'a mut Twhere
T: ?Sized,
Borrow contents of a TLCell
mutably (read-write). Only one
TLCell
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.
Sourcepub fn rw2<'a, T, U>(
&'a mut self,
tc1: &'a TLCell<Q, T>,
tc2: &'a TLCell<Q, U>,
) -> (&'a mut T, &'a mut U)
pub fn rw2<'a, T, U>( &'a mut self, tc1: &'a TLCell<Q, T>, tc2: &'a TLCell<Q, U>, ) -> (&'a mut T, &'a mut U)
Borrow contents of two TLCell
instances mutably. Panics if
the two TLCell
instances point to the same memory.
Trait Implementations§
Source§impl From<TLCellOwner<Ghost>> for PermTkn
impl From<TLCellOwner<Ghost>> for PermTkn
Source§fn from(original: TLCellOwner<Ghost>) -> PermTkn
fn from(original: TLCellOwner<Ghost>) -> PermTkn
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PermTkn
impl RefUnwindSafe for PermTkn
impl !Send for PermTkn
impl !Sync for PermTkn
impl Unpin for PermTkn
impl UnwindSafe for PermTkn
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more