pub struct Tag<'h, V>where
V: Identities,{ /* private fields */ }Expand description
What acts on an epoch of a live lineage: an epoch id, with the lineage’s handle (DI-D-40). A write is tagged with one, and a seal names one, so neither can name a lineage that is not live. Borrows the handle, never the instance.
Implementations§
Source§impl<'h, V> Tag<'h, V>where
V: Identities,
impl<'h, V> Tag<'h, V>where
V: Identities,
Sourcepub fn new(
handle: &'h <V as Identities>::LineageHandle,
id: <V as Identities>::EpochId,
) -> Tag<'h, V>
pub fn new( handle: &'h <V as Identities>::LineageHandle, id: <V as Identities>::EpochId, ) -> Tag<'h, V>
Epoch id of handle’s lineage.
Sourcepub fn handle(&self) -> &'h <V as Identities>::LineageHandle
pub fn handle(&self) -> &'h <V as Identities>::LineageHandle
The lineage’s handle.
Sourcepub fn id(&self) -> <V as Identities>::EpochId
pub fn id(&self) -> <V as Identities>::EpochId
The epoch id.
Trait Implementations§
Source§impl<V> Clone for Tag<'_, V>where
V: Identities,
impl<V> Clone for Tag<'_, V>where
V: Identities,
impl<V> Copy for Tag<'_, V>where
V: Identities,
Auto Trait Implementations§
impl<'h, V> Freeze for Tag<'h, V>
impl<'h, V> RefUnwindSafe for Tag<'h, V>where
&'h <V as Identities>::LineageHandle: RefUnwindSafe,
<V as Identities>::EpochId: RefUnwindSafe,
impl<'h, V> Send for Tag<'h, V>
impl<'h, V> Sync for Tag<'h, V>
impl<'h, V> Unpin for Tag<'h, V>
impl<'h, V> UnsafeUnpin for Tag<'h, V>
impl<'h, V> UnwindSafe for Tag<'h, V>
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