pub struct RelationTypeId(/* private fields */);Expand description
Checked relation-type carrier, which cannot contain a runtime entity ID.
Implementations§
Source§impl RelationTypeId
impl RelationTypeId
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: RuntimeRelationId) -> Self
pub const fn runtime(id: RuntimeRelationId) -> 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 RelationTypeId
impl Clone for RelationTypeId
impl Copy for RelationTypeId
Source§impl Debug for RelationTypeId
impl Debug for RelationTypeId
Source§impl<'de> Deserialize<'de> for RelationTypeId
impl<'de> Deserialize<'de> for RelationTypeId
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 RelationTypeId
Source§impl From<RelationTypeId> for u32
impl From<RelationTypeId> for u32
Source§fn from(value: RelationTypeId) -> Self
fn from(value: RelationTypeId) -> Self
Converts to this type from the input type.
Source§impl Hash for RelationTypeId
impl Hash for RelationTypeId
Source§impl PartialEq for RelationTypeId
impl PartialEq for RelationTypeId
Source§impl Serialize for RelationTypeId
impl Serialize for RelationTypeId
impl StructuralPartialEq for RelationTypeId
Auto Trait Implementations§
impl Freeze for RelationTypeId
impl RefUnwindSafe for RelationTypeId
impl Send for RelationTypeId
impl Sync for RelationTypeId
impl Unpin for RelationTypeId
impl UnsafeUnpin for RelationTypeId
impl UnwindSafe for RelationTypeId
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.