pub struct PrimaryEntityTypeId(/* private fields */);Expand description
Immutable primary property-routing label, independent of current membership.
The existing topology scalar uses u32::MAX for an originally unlabelled
node. Label changes can leave that absence beside a nonempty membership list.
Implementations§
Source§impl PrimaryEntityTypeId
impl PrimaryEntityTypeId
Sourcepub const fn known(id: EntityTypeId) -> Self
pub const fn known(id: EntityTypeId) -> Self
Preserve a checked original primary routing label.
Sourcepub const fn decode(encoded: u32) -> Result<Self, CatalogIdError>
pub const fn decode(encoded: u32) -> Result<Self, CatalogIdError>
Decode the existing primary-routing scalar, including its absence value.
Sourcepub const fn encode(self) -> u32
pub const fn encode(self) -> u32
Return the original scalar without inferring it from current membership.
Sourcepub const fn label(self) -> Option<EntityTypeId>
pub const fn label(self) -> Option<EntityTypeId>
Inspect the original routing label independently of current membership.
Trait Implementations§
Source§impl Clone for PrimaryEntityTypeId
impl Clone for PrimaryEntityTypeId
impl Copy for PrimaryEntityTypeId
Source§impl Debug for PrimaryEntityTypeId
impl Debug for PrimaryEntityTypeId
Source§impl<'de> Deserialize<'de> for PrimaryEntityTypeId
impl<'de> Deserialize<'de> for PrimaryEntityTypeId
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 PrimaryEntityTypeId
Source§impl From<PrimaryEntityTypeId> for u32
impl From<PrimaryEntityTypeId> for u32
Source§fn from(value: PrimaryEntityTypeId) -> Self
fn from(value: PrimaryEntityTypeId) -> Self
Converts to this type from the input type.
Source§impl Hash for PrimaryEntityTypeId
impl Hash for PrimaryEntityTypeId
Source§impl PartialEq for PrimaryEntityTypeId
impl PartialEq for PrimaryEntityTypeId
Source§impl Serialize for PrimaryEntityTypeId
impl Serialize for PrimaryEntityTypeId
impl StructuralPartialEq for PrimaryEntityTypeId
Auto Trait Implementations§
impl Freeze for PrimaryEntityTypeId
impl RefUnwindSafe for PrimaryEntityTypeId
impl Send for PrimaryEntityTypeId
impl Sync for PrimaryEntityTypeId
impl Unpin for PrimaryEntityTypeId
impl UnsafeUnpin for PrimaryEntityTypeId
impl UnwindSafe for PrimaryEntityTypeId
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.