pub struct SpeexFile { /* private fields */ }Expand description
An OGG Speex file
Implementations§
source§impl SpeexFile
impl SpeexFile
sourcepub fn vorbis_comments(&self) -> &VorbisComments
pub fn vorbis_comments(&self) -> &VorbisComments
Returns a reference to the tag
sourcepub fn vorbis_comments_mut(&mut self) -> &mut VorbisComments
pub fn vorbis_comments_mut(&mut self) -> &mut VorbisComments
Returns a mutable reference to the tag
sourcepub fn set_vorbis_comments(
&mut self,
tag: VorbisComments
) -> Option<VorbisComments>
pub fn set_vorbis_comments( &mut self, tag: VorbisComments ) -> Option<VorbisComments>
Sets the tag, returning the old one
sourcepub fn remove_vorbis_comments(&mut self) -> VorbisComments
pub fn remove_vorbis_comments(&mut self) -> VorbisComments
Removes the tag
Trait Implementations§
source§impl AudioFile for SpeexFile
impl AudioFile for SpeexFile
§type Properties = SpeexProperties
type Properties = SpeexProperties
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,
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<()>
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 SpeexFile
impl Send for SpeexFile
impl Sync for SpeexFile
impl Unpin for SpeexFile
impl UnwindSafe for SpeexFile
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