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