Struct lofty::iff::wav::WavFile

source ·
pub struct WavFile { /* private fields */ }
Expand description

A WAV file

Implementations§

source§

impl WavFile

source

pub fn riff_info(&self) -> Option<&RIFFInfoList>

Returns a reference to the tag

source

pub fn riff_info_mut(&mut self) -> Option<&mut RIFFInfoList>

Returns a mutable reference to the tag

source

pub fn set_riff_info(&mut self, tag: RIFFInfoList) -> Option<RIFFInfoList>

Sets the tag, returning the old one

source

pub fn remove_riff_info(&mut self) -> Option<RIFFInfoList>

Removes the tag

source§

impl WavFile

source

pub fn id3v2(&self) -> Option<&Id3v2Tag>

Returns a reference to the tag

source

pub fn id3v2_mut(&mut self) -> Option<&mut Id3v2Tag>

Returns a mutable reference to the tag

source

pub fn set_id3v2(&mut self, tag: Id3v2Tag) -> Option<Id3v2Tag>

Sets the tag, returning the old one

source

pub fn remove_id3v2(&mut self) -> Option<Id3v2Tag>

Removes the tag

Trait Implementations§

source§

impl AudioFile for WavFile

§

type Properties = WavProperties

The struct the file uses for audio properties Read more
source§

fn read_from<R>(reader: &mut R, parse_options: ParseOptions) -> Result<Self>
where R: Read + Seek,

Read a file from a reader Read more
source§

fn save_to(&self, file: &mut File) -> Result<()>

Attempts to write all tags to a file Read more
source§

fn properties(&self) -> &Self::Properties

Returns a reference to the file’s properties
source§

fn contains_tag(&self) -> bool

Checks if the file contains any tags
source§

fn contains_tag_type(&self, tag_type: TagType) -> bool

Checks if the file contains the given TagType
source§

fn save_to_path(&self, path: impl AsRef<Path>) -> Result<()>

Attempts to write all tags to a path Read more
source§

impl From<WavFile> for TaggedFile

source§

fn from(input: WavFile) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.