pub struct Epoch<V>where
V: Identities,{
pub lineage: <V as Identities>::Lineage,
pub id: <V as Identities>::EpochId,
}Expand description
An epoch: an epoch id within a lineage, by the lineage’s plain name. What the API reports, and
what names or asks about an epoch – a gate, a query – takes; what acts on a lineage takes a
Tag instead (DI-D-40). Plain data, so a consumer can keep it in its own records.
Only PartialOrd: epochs of different lineages are unrelated, so partial_cmp is None
for them, and within one lineage they order by id.
Fields§
§lineage: <V as Identities>::LineageThe lineage whose epoch space the id belongs to.
id: <V as Identities>::EpochIdThe consumer’s epoch id within that lineage.
Implementations§
Source§impl<V> Epoch<V>where
V: Identities,
impl<V> Epoch<V>where
V: Identities,
Sourcepub fn new(
lineage: <V as Identities>::Lineage,
id: <V as Identities>::EpochId,
) -> Epoch<V>
pub fn new( lineage: <V as Identities>::Lineage, id: <V as Identities>::EpochId, ) -> Epoch<V>
The epoch id of lineage.
Trait Implementations§
impl<V> Copy for Epoch<V>
impl<V> Eq for Epoch<V>
Source§impl<V> PartialEq for Epoch<V>where
V: PartialEq + Identities,
<V as Identities>::Lineage: PartialEq,
<V as Identities>::EpochId: PartialEq,
impl<V> PartialEq for Epoch<V>where
V: PartialEq + Identities,
<V as Identities>::Lineage: PartialEq,
<V as Identities>::EpochId: PartialEq,
Source§impl<V> PartialOrd for Epoch<V>where
V: Identities,
impl<V> PartialOrd for Epoch<V>where
V: Identities,
impl<V> StructuralPartialEq for Epoch<V>where
V: PartialEq + Identities,
<V as Identities>::Lineage: PartialEq,
<V as Identities>::EpochId: PartialEq,
Auto Trait Implementations§
impl<V> Freeze for Epoch<V>
impl<V> RefUnwindSafe for Epoch<V>
impl<V> Send for Epoch<V>
impl<V> Sync for Epoch<V>
impl<V> Unpin for Epoch<V>
impl<V> UnsafeUnpin for Epoch<V>
impl<V> UnwindSafe for Epoch<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