pub struct EntityRecord {
pub id: EntityId,
pub name: BlobId,
pub name_term: TermId,
pub created_at: u64,
pub flags: u32,
}Expand description
A graph node (24-byte slot, Uniform arena).
| off | size | field |
|---|---|---|
| 0 | 4 | id (key) |
| 4 | 4 | name |
| 8 | 4 | name_term |
| 12 | 8 | created_at |
| 20 | 4 | flags (reserved, 0 in v1) |
Fields§
§id: EntityIdEntity id — the key.
name: BlobIdCanonical name as first entered (blob heap, UTF-8).
name_term: TermIdInterned normalized name — the lookup key for name resolution.
created_at: u64When the entity was first mentioned.
flags: u32Reserved in v1; must be 0.
Trait Implementations§
Source§impl Clone for EntityRecord
impl Clone for EntityRecord
Source§fn clone(&self) -> EntityRecord
fn clone(&self) -> EntityRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EntityRecord
Source§impl Debug for EntityRecord
impl Debug for EntityRecord
impl Eq for EntityRecord
Source§impl PartialEq for EntityRecord
impl PartialEq for EntityRecord
Source§impl Slot for EntityRecord
impl Slot for EntityRecord
impl StructuralPartialEq for EntityRecord
Auto Trait Implementations§
impl Freeze for EntityRecord
impl RefUnwindSafe for EntityRecord
impl Send for EntityRecord
impl Sync for EntityRecord
impl Unpin for EntityRecord
impl UnsafeUnpin for EntityRecord
impl UnwindSafe for EntityRecord
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