pub struct Tags(/* private fields */);Expand description
Extrinsic-organisation map. See module docs and SRD-0005.
Implementations§
Source§impl Tags
impl Tags
Sourcepub fn insert(&mut self, key: TagKey, value: TagValue) -> Option<TagValue>
pub fn insert(&mut self, key: TagKey, value: TagValue) -> Option<TagValue>
Insert a tag. Returns the previous value for key, if any.
Sourcepub fn iter(&self) -> impl Iterator<Item = (&TagKey, &TagValue)>
pub fn iter(&self) -> impl Iterator<Item = (&TagKey, &TagValue)>
Sorted-by-key iterator over (key, value) pairs.
Sourcepub fn contains_key(&self, key: &TagKey) -> bool
pub fn contains_key(&self, key: &TagKey) -> bool
Key-membership test.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tags
impl<'de> Deserialize<'de> for Tags
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 Tags
impl StructuralPartialEq for Tags
Auto Trait Implementations§
impl Freeze for Tags
impl RefUnwindSafe for Tags
impl Send for Tags
impl Sync for Tags
impl Unpin for Tags
impl UnsafeUnpin for Tags
impl UnwindSafe for Tags
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<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.