pub struct VorbisFile { /* private fields */ }Expand description
An OGG Vorbis file
Implementations§
Source§impl VorbisFile
 
impl VorbisFile
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 VorbisFile
 
impl AudioFile for VorbisFile
Source§type Properties = VorbisProperties
 
type Properties = VorbisProperties
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<F>(&self, file: &mut F, write_options: WriteOptions) -> Result<()>
 
fn save_to<F>(&self, file: &mut F, write_options: WriteOptions) -> 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
Source§fn contains_tag_type(&self, tag_type: TagType) -> bool
 
fn contains_tag_type(&self, tag_type: TagType) -> bool
Checks if the file contains the given 
TagTypeSource§fn save_to_path(
    &self,
    path: impl AsRef<Path>,
    write_options: WriteOptions,
) -> Result<()>
 
fn save_to_path( &self, path: impl AsRef<Path>, write_options: WriteOptions, ) -> Result<()>
Attempts to write all tags to a path Read more
Source§impl From<VorbisFile> for TaggedFile
 
impl From<VorbisFile> for TaggedFile
Source§fn from(input: VorbisFile) -> Self
 
fn from(input: VorbisFile) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VorbisFile
impl RefUnwindSafe for VorbisFile
impl Send for VorbisFile
impl Sync for VorbisFile
impl Unpin for VorbisFile
impl UnwindSafe for VorbisFile
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