pub struct PropertyId(/* private fields */);Expand description
Compiler property reference with explicit ontology/runtime ownership.
Property catalog integers have no tag bits. Their domain must stay attached in compiler carriers and be resolved against the matching authority; it cannot be reconstructed from a bare numeric property ID.
Implementations§
Source§impl PropertyId
impl PropertyId
Sourcepub const fn ontology(id: PropId) -> Result<Self, CatalogIdError>
pub const fn ontology(id: PropId) -> Result<Self, CatalogIdError>
Carry a declared property identity without substituting a runtime ID.
Sourcepub const fn runtime(id: RuntimePropId) -> Self
pub const fn runtime(id: RuntimePropId) -> Self
Carry an already checked owner-scoped runtime property identity.
Sourcepub const fn ontology_id(self) -> Option<PropId>
pub const fn ontology_id(self) -> Option<PropId>
Resolve only declared property references through an ontology map.
Sourcepub const fn runtime_id(self) -> Option<RuntimePropId>
pub const fn runtime_id(self) -> Option<RuntimePropId>
Resolve only runtime property references through the runtime catalog.
Trait Implementations§
Source§impl Clone for PropertyId
impl Clone for PropertyId
impl Copy for PropertyId
Source§impl Debug for PropertyId
impl Debug for PropertyId
Source§impl<'de> Deserialize<'de> for PropertyId
impl<'de> Deserialize<'de> for PropertyId
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
Source§impl Display for PropertyId
impl Display for PropertyId
impl Eq for PropertyId
Source§impl Hash for PropertyId
impl Hash for PropertyId
Source§impl PartialEq for PropertyId
impl PartialEq for PropertyId
Source§impl Serialize for PropertyId
impl Serialize for PropertyId
impl StructuralPartialEq for PropertyId
Auto Trait Implementations§
impl Freeze for PropertyId
impl RefUnwindSafe for PropertyId
impl Send for PropertyId
impl Sync for PropertyId
impl Unpin for PropertyId
impl UnsafeUnpin for PropertyId
impl UnwindSafe for PropertyId
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.