pub struct PermCellOwn<T: ?Sized>(/* private fields */);Expand description
Implementations§
Source§impl<T: ?Sized> PermCellOwn<T>
impl<T: ?Sized> PermCellOwn<T>
Sourcepub fn id(self) -> Id
pub fn id(self) -> Id
Returns the logical identity of the cell.
To use a PermCell, this and PermCell::id must agree.
(opaque) ⚠
Sourcepub fn disjoint_lemma(own1: &mut PermCellOwn<T>, own2: &PermCellOwn<T>)
pub fn disjoint_lemma(own1: &mut PermCellOwn<T>, own2: &PermCellOwn<T>)
If one owns two PermCellOwns in ghost code, then they have different ids.
terminates
ghost
ensures
own1.id() != own2.id()ensures
*own1 == ^own1Trait Implementations§
Source§impl<T: Sized> Invariant for PermCellOwn<T>
impl<T: Sized> Invariant for PermCellOwn<T>
Source§impl<T: ?Sized> Resolve for PermCellOwn<T>
impl<T: ?Sized> Resolve for PermCellOwn<T>
Auto Trait Implementations§
impl<T> Freeze for PermCellOwn<T>where
T: ?Sized,
impl<T> RefUnwindSafe for PermCellOwn<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Send for PermCellOwn<T>
impl<T> Sync for PermCellOwn<T>
impl<T> Unpin for PermCellOwn<T>
impl<T> UnwindSafe for PermCellOwn<T>where
T: UnwindSafe + ?Sized,
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