pub struct EntityId(/* private fields */);Expand description
A stable identity for a topological entity, valid for the lifetime of a document.
Distinct from an arena Key: a key says where the data is
and dies when the entity is rebuilt; an EntityId says what the entity is
and survives.
Implementations§
Source§impl EntityId
impl EntityId
Sourcepub const fn from_raw(raw: u64) -> Option<Self>
pub const fn from_raw(raw: u64) -> Option<Self>
An identity from a raw value, or None if it is zero.
For reading a document back from a file, which has to reproduce the
identities it was written with: a reference recorded against
EntityId(7) has to still find entity seven. Nothing else should mint
one of these: within a document,
ProvenanceTable::record is what issues an
identity, and it issues one that has something behind it.
Trait Implementations§
impl Copy for EntityId
impl Eq for EntityId
Source§impl Ord for EntityId
impl Ord for EntityId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for EntityId
impl PartialOrd for EntityId
impl StructuralPartialEq for EntityId
Auto Trait Implementations§
impl Freeze for EntityId
impl RefUnwindSafe for EntityId
impl Send for EntityId
impl Sync for EntityId
impl Unpin for EntityId
impl UnsafeUnpin for EntityId
impl UnwindSafe for EntityId
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