pub struct AnnotationKey(/* private fields */);Expand description
Unique annotation key type.
Trait Implementations§
Source§impl Clone for AnnotationKey
impl Clone for AnnotationKey
Source§fn clone(&self) -> AnnotationKey
fn clone(&self) -> AnnotationKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnotationKey
impl Debug for AnnotationKey
Source§impl Default for AnnotationKey
impl Default for AnnotationKey
Source§fn default() -> AnnotationKey
fn default() -> AnnotationKey
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AnnotationKey
impl<'de> Deserialize<'de> for AnnotationKey
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 From<KeyData> for AnnotationKey
impl From<KeyData> for AnnotationKey
Source§impl Hash for AnnotationKey
impl Hash for AnnotationKey
Source§impl Key for AnnotationKey
impl Key for AnnotationKey
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 AnnotationKey
impl Ord for AnnotationKey
Source§fn cmp(&self, other: &AnnotationKey) -> Ordering
fn cmp(&self, other: &AnnotationKey) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AnnotationKey
impl PartialEq for AnnotationKey
Source§impl PartialOrd for AnnotationKey
impl PartialOrd for AnnotationKey
Source§impl Serialize for AnnotationKey
impl Serialize for AnnotationKey
impl Copy for AnnotationKey
impl Eq for AnnotationKey
impl StructuralPartialEq for AnnotationKey
Auto Trait Implementations§
impl Freeze for AnnotationKey
impl RefUnwindSafe for AnnotationKey
impl Send for AnnotationKey
impl Sync for AnnotationKey
impl Unpin for AnnotationKey
impl UnsafeUnpin for AnnotationKey
impl UnwindSafe for AnnotationKey
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.