pub struct RIFFInfoList { /* private fields */ }Expand description
A RIFF INFO LIST
Supported file types
Conversions
From Tag
Two conditions must be met:
- The
TagItemhas a value other thanItemValue::Binary - It has a key that is 4 bytes in length and within the ASCII range
Implementations
sourceimpl RIFFInfoList
impl RIFFInfoList
sourcepub fn insert(&mut self, key: String, value: String)
pub fn insert(&mut self, key: String, value: String)
Insert an item
NOTE: This will do nothing if key is invalid
This will case-insensitively replace any item with the same key
Trait Implementations
sourceimpl Accessor for RIFFInfoList
impl Accessor for RIFFInfoList
sourcefn set_artist(&mut self, value: String)
fn set_artist(&mut self, value: String)
Sets the artist Read more
sourcefn remove_artist(&mut self)
fn remove_artist(&mut self)
Removes the artist Read more
sourcefn remove_title(&mut self)
fn remove_title(&mut self)
Removes the title Read more
sourcefn remove_album(&mut self)
fn remove_album(&mut self)
Removes the album Read more
sourcefn remove_genre(&mut self)
fn remove_genre(&mut self)
Removes the genre Read more
sourcefn set_comment(&mut self, value: String)
fn set_comment(&mut self, value: String)
Sets the comment Read more
sourcefn remove_comment(&mut self)
fn remove_comment(&mut self)
Removes the comment Read more
sourcefn remove_track(&mut self)
fn remove_track(&mut self)
Removes the track Read more
sourcefn track_total(&self) -> Option<u32>
fn track_total(&self) -> Option<u32>
Returns the track total Read more
sourcefn set_track_total(&mut self, value: u32)
fn set_track_total(&mut self, value: u32)
Sets the track total Read more
sourcefn remove_track_total(&mut self)
fn remove_track_total(&mut self)
Removes the track total Read more
sourcefn remove_disk(&mut self)
fn remove_disk(&mut self)
Removes the disk Read more
sourcefn disk_total(&self) -> Option<u32>
fn disk_total(&self) -> Option<u32>
Returns the disk total Read more
sourcefn set_disk_total(&mut self, _value: u32)
fn set_disk_total(&mut self, _value: u32)
Sets the disk total Read more
sourcefn remove_disk_total(&mut self)
fn remove_disk_total(&mut self)
Removes the disk total Read more
sourcefn remove_year(&mut self)
fn remove_year(&mut self)
Removes the year Read more
sourceimpl Clone for RIFFInfoList
impl Clone for RIFFInfoList
sourcefn clone(&self) -> RIFFInfoList
fn clone(&self) -> RIFFInfoList
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RIFFInfoList
impl Debug for RIFFInfoList
sourceimpl Default for RIFFInfoList
impl Default for RIFFInfoList
sourcefn default() -> RIFFInfoList
fn default() -> RIFFInfoList
Returns the “default value” for a type. Read more
sourceimpl From<RIFFInfoList> for Tag
impl From<RIFFInfoList> for Tag
sourcefn from(input: RIFFInfoList) -> Self
fn from(input: RIFFInfoList) -> Self
Converts to this type from the input type.
sourceimpl From<Tag> for RIFFInfoList
impl From<Tag> for RIFFInfoList
sourceimpl PartialEq<RIFFInfoList> for RIFFInfoList
impl PartialEq<RIFFInfoList> for RIFFInfoList
sourcefn eq(&self, other: &RIFFInfoList) -> bool
fn eq(&self, other: &RIFFInfoList) -> bool
sourceimpl TagExt for RIFFInfoList
impl TagExt for RIFFInfoList
type Err = LoftyError
type Err = LoftyError
The associated error which can be returned from IO operations
sourcefn save_to_path<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::Err>
fn save_to_path<P: AsRef<Path>>(&self, path: P) -> Result<(), Self::Err>
Save the tag to a path Read more
sourcefn dump_to<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
fn dump_to<W: Write>(&self, writer: &mut W) -> Result<(), Self::Err>
Dump the tag to a writer Read more
impl Eq for RIFFInfoList
impl StructuralEq for RIFFInfoList
impl StructuralPartialEq for RIFFInfoList
Auto Trait Implementations
impl RefUnwindSafe for RIFFInfoList
impl Send for RIFFInfoList
impl Sync for RIFFInfoList
impl Unpin for RIFFInfoList
impl UnwindSafe for RIFFInfoList
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more