pub struct EntityByName {
pub name_term: TermId,
pub id: EntityId,
}Expand description
Name → entity resolution record (8-byte slot, Ordered arena,
the whole slot is the key: [name_term BE | id BE]).
The normalized name is unique (lookup-or-create), so a prefix scan on
name_term yields at most one record; the full pair keeps the slot
unique and self-describing.
Fields§
§name_term: TermIdInterned normalized name.
id: EntityIdThe entity carrying that name.
Trait Implementations§
Source§impl Clone for EntityByName
impl Clone for EntityByName
Source§fn clone(&self) -> EntityByName
fn clone(&self) -> EntityByName
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 EntityByName
Source§impl Debug for EntityByName
impl Debug for EntityByName
impl Eq for EntityByName
Source§impl PartialEq for EntityByName
impl PartialEq for EntityByName
Source§impl Slot for EntityByName
impl Slot for EntityByName
impl StructuralPartialEq for EntityByName
Auto Trait Implementations§
impl Freeze for EntityByName
impl RefUnwindSafe for EntityByName
impl Send for EntityByName
impl Sync for EntityByName
impl Unpin for EntityByName
impl UnsafeUnpin for EntityByName
impl UnwindSafe for EntityByName
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