pub struct Id(/* private fields */);Expand description
A unique id, usable in logic and ghost code
The only properties of this type are:
- there is an infinite number of ids
- You can always generate a fresh id in logic code
§Usage
Ids are used in PermCell and resource algebras.
Trait Implementations§
Source§impl DeepModel for Id
impl DeepModel for Id
Source§fn deep_model(self) -> Self::DeepModelTy
fn deep_model(self) -> Self::DeepModelTy
(open, inline)
selftype DeepModelTy = Id
impl Copy for Id
impl Eq for Id
impl Plain for Id
Auto Trait Implementations§
impl Freeze for Id
impl RefUnwindSafe for Id
impl Send for Id
impl Sync for Id
impl Unpin for Id
impl UnwindSafe for Id
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