pub struct WavFile { /* private fields */ }Expand description
A WAV file
Implementations§
source§impl WavFile
impl WavFile
sourcepub fn riff_info(&self) -> Option<&RIFFInfoList>
pub fn riff_info(&self) -> Option<&RIFFInfoList>
Returns a reference to the tag
sourcepub fn riff_info_mut(&mut self) -> Option<&mut RIFFInfoList>
pub fn riff_info_mut(&mut self) -> Option<&mut RIFFInfoList>
Returns a mutable reference to the tag
sourcepub fn set_riff_info(&mut self, tag: RIFFInfoList) -> Option<RIFFInfoList>
pub fn set_riff_info(&mut self, tag: RIFFInfoList) -> Option<RIFFInfoList>
Sets the tag, returning the old one
sourcepub fn remove_riff_info(&mut self) -> Option<RIFFInfoList>
pub fn remove_riff_info(&mut self) -> Option<RIFFInfoList>
Removes the tag
Trait Implementations§
source§impl AudioFile for WavFile
impl AudioFile for WavFile
§type Properties = WavProperties
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>
fn read_from<R>(reader: &mut R, parse_options: ParseOptions) -> Result<Self>
Read a file from a reader Read more
source§fn save_to(&self, file: &mut File) -> Result<()>
fn save_to(&self, file: &mut File) -> Result<()>
Attempts to write all tags to a file Read more
source§fn properties(&self) -> &Self::Properties
fn properties(&self) -> &Self::Properties
Returns a reference to the file’s properties
source§fn contains_tag(&self) -> bool
fn contains_tag(&self) -> bool
Checks if the file contains any tags
Auto Trait Implementations§
impl RefUnwindSafe for WavFile
impl Send for WavFile
impl Sync for WavFile
impl Unpin for WavFile
impl UnwindSafe for WavFile
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more