Struct lofty::ogg::VorbisFile
source · [−]pub struct VorbisFile { /* private fields */ }
Expand description
An OGG Vorbis file
Implementations
sourceimpl VorbisFile
impl VorbisFile
sourcepub fn vorbis_comments(&self) -> &VorbisComments
Available on crate feature vorbis_comments
only.
pub fn vorbis_comments(&self) -> &VorbisComments
vorbis_comments
only.Returns a reference to the tag
sourcepub fn vorbis_comments_mut(&mut self) -> &mut VorbisComments
Available on crate feature vorbis_comments
only.
pub fn vorbis_comments_mut(&mut self) -> &mut VorbisComments
vorbis_comments
only.Returns a mutable reference to the tag
sourcepub fn remove_vorbis_comments(&mut self)
Available on crate feature vorbis_comments
only.
pub fn remove_vorbis_comments(&mut self)
vorbis_comments
only.Removes the tag
Trait Implementations
sourceimpl AudioFile for VorbisFile
impl AudioFile for VorbisFile
type Properties = VorbisProperties
type Properties = VorbisProperties
The struct the file uses for audio properties Read more
sourcefn read_from<R>(reader: &mut R, read_properties: bool) -> Result<Self>where
R: Read + Seek,
fn read_from<R>(reader: &mut R, read_properties: bool) -> Result<Self>where
R: Read + Seek,
Read a file from a reader Read more
sourcefn properties(&self) -> &Self::Properties
fn properties(&self) -> &Self::Properties
Returns a reference to the file’s properties
sourcefn contains_tag(&self) -> bool
fn contains_tag(&self) -> bool
Checks if the file contains any tags
sourcefn contains_tag_type(&self, tag_type: TagType) -> bool
fn contains_tag_type(&self, tag_type: TagType) -> bool
Checks if the file contains the given TagType
sourceimpl From<VorbisFile> for TaggedFile
impl From<VorbisFile> for TaggedFile
sourcefn from(input: VorbisFile) -> Self
fn from(input: VorbisFile) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for VorbisFile
impl Send for VorbisFile
impl Sync for VorbisFile
impl Unpin for VorbisFile
impl UnwindSafe for VorbisFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more