pub struct Lifetime(/* private fields */);Expand description
Abstract representation of a lifetime.
Used to identify a lifetime in LifetimeToken and LifetimeDead.
To differentiate this from a normal Rust lifetime (e.g. 'a), we call the
former a syntactic lifetime, while this is a synthetic lifetime.
Trait Implementations§
Source§impl Plain for Lifetime
impl Plain for Lifetime
Source§fn into_ghost(snap: Snapshot<Self>) -> Ghost<Self>
fn into_ghost(snap: Snapshot<Self>) -> Ghost<Self>
terminates
ghost
ensures
*result == *snapimpl Copy for Lifetime
Auto Trait Implementations§
impl Freeze for Lifetime
impl Objective for Lifetime
impl RefUnwindSafe for Lifetime
impl Send for Lifetime
impl Sync for Lifetime
impl Unpin for Lifetime
impl UnsafeUnpin for Lifetime
impl UnwindSafe for Lifetime
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