[−][src]Enum id3::Content
The decoded contents of a frame.
Variants
Text(String)
A value containing the parsed contents of a text frame.
ExtendedText(ExtendedText)
A value containing the parsed contents of a user defined text frame (TXXX).
Link(String)
A value containing the parsed contents of a web link frame.
ExtendedLink(ExtendedLink)
A value containing the parsed contents of a user defined web link frame (WXXX).
Comment(Comment)
A value containing the parsed contents of a comment frame (COMM).
Lyrics(Lyrics)
A value containing the parsed contents of a lyrics frame (USLT).
Picture(Picture)
A value containing the parsed contents of a picture frame (APIC).
Unknown(Vec<u8>)
A value containing the bytes of a unknown frame.
Methods
impl Content
[src]
pub fn text(&self) -> Option<&str>
[src]
Returns the Text
or None if the value is not Text
.
pub fn extended_text(&self) -> Option<&ExtendedText>
[src]
Returns the ExtendedText
or None if the value is not ExtendedText
.
pub fn link(&self) -> Option<&str>
[src]
Returns the Link
or None if the value is not Link
.
pub fn extended_link(&self) -> Option<&ExtendedLink>
[src]
Returns the ExtendedLink
or None if the value is not ExtendedLink
.
pub fn comment(&self) -> Option<&Comment>
[src]
Returns the Comment
or None if the value is not Comment
.
pub fn lyrics(&self) -> Option<&Lyrics>
[src]
Returns the Lyrics
or None if the value is not Lyrics
.
pub fn picture(&self) -> Option<&Picture>
[src]
Returns the Picture
or None if the value is not Picture
.
pub fn unknown(&self) -> Option<&[u8]>
[src]
Returns the Unknown
or None if the value is not Unknown
.
Trait Implementations
impl Eq for Content
[src]
impl Clone for Content
[src]
fn clone(&self) -> Content
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Content> for Content
[src]
impl Hash for Content
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Content
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,