pub struct NameKey(/* private fields */);Expand description
Unique name key type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for NameKey
impl<'de> Deserialize<'de> for NameKey
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 NameKey
impl Key for NameKey
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 NameKey
impl Ord for NameKey
Source§impl PartialOrd for NameKey
impl PartialOrd for NameKey
impl Copy for NameKey
impl Eq for NameKey
impl StructuralPartialEq for NameKey
Auto Trait Implementations§
impl Freeze for NameKey
impl RefUnwindSafe for NameKey
impl Send for NameKey
impl Sync for NameKey
impl Unpin for NameKey
impl UnsafeUnpin for NameKey
impl UnwindSafe for NameKey
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.