pub struct EntityTypeId(/* private fields */);Expand description
Checked entity-label carrier, which cannot contain a runtime relation ID.
Implementations§
Source§impl EntityTypeId
impl EntityTypeId
Sourcepub const fn ontology(id: TypeId) -> Result<Self, CatalogIdError>
pub const fn ontology(id: TypeId) -> Result<Self, CatalogIdError>
Check an ontology or generation-bound semantic identity.
Sourcepub const fn runtime(id: RuntimeEntityId) -> Self
pub const fn runtime(id: RuntimeEntityId) -> Self
Carry an already checked runtime identity of the correct kind.
Sourcepub const fn decode(encoded: u32) -> Result<Self, CatalogIdError>
pub const fn decode(encoded: u32) -> Result<Self, CatalogIdError>
Validate persisted encoding and its entity/relation context.
Sourcepub const fn encode(self) -> u32
pub const fn encode(self) -> u32
Return the unchanged integer for a typed serialization boundary.
Sourcepub const fn tagged(self) -> TaggedTypeId
pub const fn tagged(self) -> TaggedTypeId
Inspect identity domain through the shared checked carrier.
Trait Implementations§
Source§impl Clone for EntityTypeId
impl Clone for EntityTypeId
impl Copy for EntityTypeId
Source§impl Debug for EntityTypeId
impl Debug for EntityTypeId
Source§impl<'de> Deserialize<'de> for EntityTypeId
impl<'de> Deserialize<'de> for EntityTypeId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EntityTypeId
Source§impl From<EntityTypeId> for u32
impl From<EntityTypeId> for u32
Source§fn from(value: EntityTypeId) -> Self
fn from(value: EntityTypeId) -> Self
Converts to this type from the input type.
Source§impl Hash for EntityTypeId
impl Hash for EntityTypeId
Source§impl PartialEq for EntityTypeId
impl PartialEq for EntityTypeId
Source§impl Serialize for EntityTypeId
impl Serialize for EntityTypeId
impl StructuralPartialEq for EntityTypeId
Auto Trait Implementations§
impl Freeze for EntityTypeId
impl RefUnwindSafe for EntityTypeId
impl Send for EntityTypeId
impl Sync for EntityTypeId
impl Unpin for EntityTypeId
impl UnsafeUnpin for EntityTypeId
impl UnwindSafe for EntityTypeId
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.