pub struct LabelKey(/* private fields */);Expand description
Unique label key type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LabelKey
impl<'de> Deserialize<'de> for LabelKey
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 Key for LabelKey
impl Key for LabelKey
Source§fn null() -> Self
fn null() -> Self
Creates a new key that is always invalid and distinct from any non-null
key. A null key can only be created through this method (or default
initialization of keys made with
new_key_type!, which calls this
method). Read moreSource§impl Ord for LabelKey
impl Ord for LabelKey
Source§impl PartialOrd for LabelKey
impl PartialOrd for LabelKey
impl Copy for LabelKey
impl Eq for LabelKey
impl StructuralPartialEq for LabelKey
Auto Trait Implementations§
impl Freeze for LabelKey
impl RefUnwindSafe for LabelKey
impl Send for LabelKey
impl Sync for LabelKey
impl Unpin for LabelKey
impl UnsafeUnpin for LabelKey
impl UnwindSafe for LabelKey
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<FieldKey> FieldValue<FieldKey> for FieldKeywhere
FieldKey: Key,
impl<FieldKey> FieldValue<FieldKey> for FieldKeywhere
FieldKey: Key,
Source§impl<FieldKey> FieldWithoutSubValue<FieldKey> for FieldKeywhere
FieldKey: Key,
impl<FieldKey> FieldWithoutSubValue<FieldKey> for FieldKeywhere
FieldKey: Key,
Source§fn insert_field(&mut self, field: FieldKey) -> bool
fn insert_field(&mut self, field: FieldKey) -> bool
Set or insert this field in the value. Returns whether it was newly inserted.
Source§fn remove_field(&mut self, field: FieldKey) -> bool
fn remove_field(&mut self, field: FieldKey) -> bool
Remove field. Returns if anything was removed.