Struct lofty::ogg::VorbisProperties
source · [−]#[non_exhaustive]pub struct VorbisProperties { /* private fields */ }Expand description
An OGG Vorbis file’s audio properties
Implementations
sourceimpl VorbisProperties
impl VorbisProperties
sourcepub fn overall_bitrate(&self) -> u32
pub fn overall_bitrate(&self) -> u32
Overall bitrate (kbps)
sourcepub fn audio_bitrate(&self) -> u32
pub fn audio_bitrate(&self) -> u32
Audio bitrate (kbps)
sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
Sample rate (Hz)
sourcepub fn bitrate_max(&self) -> i32
pub fn bitrate_max(&self) -> i32
Maximum bitrate (bps)
sourcepub fn bitrate_nominal(&self) -> i32
pub fn bitrate_nominal(&self) -> i32
Nominal bitrate (bps)
sourcepub fn bitrate_min(&self) -> i32
pub fn bitrate_min(&self) -> i32
Minimum bitrate (bps)
Trait Implementations
sourceimpl Clone for VorbisProperties
impl Clone for VorbisProperties
sourcefn clone(&self) -> VorbisProperties
fn clone(&self) -> VorbisProperties
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for VorbisProperties
impl Debug for VorbisProperties
sourceimpl Default for VorbisProperties
impl Default for VorbisProperties
sourcefn default() -> VorbisProperties
fn default() -> VorbisProperties
Returns the “default value” for a type. Read more
sourceimpl From<VorbisProperties> for FileProperties
impl From<VorbisProperties> for FileProperties
sourcefn from(input: VorbisProperties) -> Self
fn from(input: VorbisProperties) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<VorbisProperties> for VorbisProperties
impl PartialEq<VorbisProperties> for VorbisProperties
sourcefn eq(&self, other: &VorbisProperties) -> bool
fn eq(&self, other: &VorbisProperties) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &VorbisProperties) -> bool
fn ne(&self, other: &VorbisProperties) -> bool
This method tests for !=.
impl Copy for VorbisProperties
impl StructuralPartialEq for VorbisProperties
Auto Trait Implementations
impl RefUnwindSafe for VorbisProperties
impl Send for VorbisProperties
impl Sync for VorbisProperties
impl Unpin for VorbisProperties
impl UnwindSafe for VorbisProperties
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more