pub enum ItemValue {
Text(String),
Locator(String),
Binary(Vec<u8>),
}
Expand description
Represents a tag item’s value
Variants§
Text(String)
Any UTF-8 encoded text
Locator(String)
Any UTF-8 encoded locator of external information
This is only gets special treatment in ID3v2
and APE
tags, being written
as a normal string in other tags
Binary(Vec<u8>)
Binary information
Implementations§
Trait Implementations§
source§impl PartialEq for ItemValue
impl PartialEq for ItemValue
source§impl TryFrom<ItemValue> for FrameValue
impl TryFrom<ItemValue> for FrameValue
§type Error = LoftyError
type Error = LoftyError
The type returned in the event of a conversion error.
source§impl<'a> TryInto<FrameValue> for &'a ItemValue
impl<'a> TryInto<FrameValue> for &'a ItemValue
§type Error = LoftyError
type Error = LoftyError
The type returned in the event of a conversion error.
impl Eq for ItemValue
impl StructuralEq for ItemValue
impl StructuralPartialEq for ItemValue
Auto Trait Implementations§
impl RefUnwindSafe for ItemValue
impl Send for ItemValue
impl Sync for ItemValue
impl Unpin for ItemValue
impl UnwindSafe for ItemValue
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