pub struct TagItem { /* private fields */ }
Expand description
Represents a tag item (key/value)
Implementations§
source§impl TagItem
impl TagItem
sourcepub fn new_checked(
tag_type: TagType,
item_key: ItemKey,
item_value: ItemValue
) -> Option<Self>
pub fn new_checked( tag_type: TagType, item_key: ItemKey, item_value: ItemValue ) -> Option<Self>
Create a new TagItem
NOTES:
- This will check for validity based on the
TagType
. - If the
ItemKey
does not map to a key in the target format,None
will be returned. - This is unnecessary if you plan on using
Tag::insert_item
, as it does validity checks itself.
sourcepub fn into_value(self) -> ItemValue
pub fn into_value(self) -> ItemValue
Consumes the TagItem
, returning its ItemValue
Trait Implementations§
source§impl PartialEq for TagItem
impl PartialEq for TagItem
impl Eq for TagItem
impl StructuralEq for TagItem
impl StructuralPartialEq for TagItem
Auto Trait Implementations§
impl RefUnwindSafe for TagItem
impl Send for TagItem
impl Sync for TagItem
impl Unpin for TagItem
impl UnwindSafe for TagItem
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