pub enum EntityTypeSelection {
All,
Known(EntityTypeId),
Missing,
}Expand description
Entity-label selection without conflating an unknown label with all labels.
Variants§
All
No label restriction.
Known(EntityTypeId)
Select one checked declared or runtime entity label.
Missing
A requested label is absent; preserve the empty-result behavior.
Implementations§
Source§impl EntityTypeSelection
impl EntityTypeSelection
Sourcepub const fn known_id(self) -> Option<EntityTypeId>
pub const fn known_id(self) -> Option<EntityTypeId>
Inspect a selected identity without treating missing as unrestricted.
Trait Implementations§
Source§impl Clone for EntityTypeSelection
impl Clone for EntityTypeSelection
impl Copy for EntityTypeSelection
Source§impl Debug for EntityTypeSelection
impl Debug for EntityTypeSelection
Source§impl<'de> Deserialize<'de> for EntityTypeSelection
impl<'de> Deserialize<'de> for EntityTypeSelection
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 EntityTypeSelection
Source§impl Hash for EntityTypeSelection
impl Hash for EntityTypeSelection
Source§impl PartialEq for EntityTypeSelection
impl PartialEq for EntityTypeSelection
Source§impl Serialize for EntityTypeSelection
impl Serialize for EntityTypeSelection
impl StructuralPartialEq for EntityTypeSelection
Auto Trait Implementations§
impl Freeze for EntityTypeSelection
impl RefUnwindSafe for EntityTypeSelection
impl Send for EntityTypeSelection
impl Sync for EntityTypeSelection
impl Unpin for EntityTypeSelection
impl UnsafeUnpin for EntityTypeSelection
impl UnwindSafe for EntityTypeSelection
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.