Struct VorbisFile

Source
pub struct VorbisFile { /* private fields */ }
Expand description

An OGG Vorbis file

Implementations§

Source§

impl VorbisFile

Source

pub fn vorbis_comments(&self) -> &VorbisComments

Returns a reference to the tag

Source

pub fn vorbis_comments_mut(&mut self) -> &mut VorbisComments

Returns a mutable reference to the tag

Source

pub fn set_vorbis_comments( &mut self, tag: VorbisComments, ) -> Option<VorbisComments>

Sets the tag, returning the old one

Source

pub fn remove_vorbis_comments(&mut self) -> VorbisComments

Removes the tag

Trait Implementations§

Source§

impl AudioFile for VorbisFile

Source§

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>
where R: Read + Seek,

Read a file from a reader Read more
Source§

fn save_to<F>(&self, file: &mut F, write_options: WriteOptions) -> Result<()>
where F: FileLike, LoftyError: From<<F as Truncate>::Error> + From<<F as Length>::Error>,

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>, write_options: WriteOptions, ) -> Result<()>

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

impl From<VorbisFile> for TaggedFile

Source§

fn from(input: VorbisFile) -> 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>,

Source§

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>,

Source§

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.