Struct metaflac::block::VorbisComment [−][src]
Expand description
A structure representing a VORBIS_COMMENT block.
Fields
vendor_string: String
The vendor string.
comments: HashMap<String, Vec<String>>
A map of keys to a list of their values.
Implementations
Returns a new VorbisComment
with an empty vendor string and no comments.
Attempts to parse the bytes as a vorbis comment block. Returns a VorbisComment
on
success.
Returns a vector representation of the vorbis comment suitable for writing to a file.
Returns a reference to the vector of comments for the specified key.
Sets the comments for the specified key. Any previous values under the key will be removed.
Removes any matching key/value pairs.
Returns a reference to the vector of values with the ARTIST key.
Sets the values for the ARTIST key. This will result in any ARTISTSORT comment being removed.
Removes all values with the ARTIST key. This will result in any ARTISTSORT comments being removed as well.
Returns a reference to the vector of values with the ALBUM key.
Sets the values for the ALBUM key. This will result in any ALBUMSORT comments being removed.
Removes all values with the ALBUM key. This will result in any ALBUMSORT comments being removed as well.
Returns a reference to the vector of values with the GENRE key.
Removes all values with the GENRE key.
Returns reference to the vector of values with the TITLE key.
Sets the values for the TITLE key. This will result in any TITLESORT comments being removed.
Removes all values with the TITLE key. This will result in any TITLESORT comments being removed as well.
Removes all values with the TRACKNUMBER key.
Attempts to convert the first TOTALTRACKS comment to a u32
.
Sets the TOTALTRACKS comment.
Removes all values with the TOTALTRACKS key.
Returns a reference to the vector of values with the ALBUMARTIST key.
Sets the values for the ALBUMARTIST key. This will result in any ALBUMARTISTSORT comments being removed.
Removes all values with the ALBUMARTIST key. This will result in any ALBUMARTISTSORT comments being removed as well.
Returns a reference to the vector of values with the LYRICS key.
Sets the values for the LYRICS key.
Removes all values with the LYRICS key.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for VorbisComment
impl Send for VorbisComment
impl Sync for VorbisComment
impl Unpin for VorbisComment
impl UnwindSafe for VorbisComment
Blanket Implementations
Mutably borrows from an owned value. Read more