Struct lofty::iff::RiffInfoList
source · [−]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
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 more
sourceimpl 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
Performs the conversion.
sourceimpl PartialEq<RiffInfoList> for RiffInfoList
impl PartialEq<RiffInfoList> for RiffInfoList
sourcefn eq(&self, other: &RiffInfoList) -> bool
fn eq(&self, other: &RiffInfoList) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RiffInfoList) -> bool
fn ne(&self, other: &RiffInfoList) -> bool
This method tests for !=.
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 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more