Struct lofty::ogg::OpusProperties
source · [−]#[non_exhaustive]pub struct OpusProperties { /* private fields */ }Expand description
An Opus file’s audio properties
Implementations
sourceimpl OpusProperties
impl OpusProperties
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 input_sample_rate(&self) -> u32
pub fn input_sample_rate(&self) -> u32
Input sample rate
Trait Implementations
sourceimpl Clone for OpusProperties
impl Clone for OpusProperties
sourcefn clone(&self) -> OpusProperties
fn clone(&self) -> OpusProperties
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 OpusProperties
impl Debug for OpusProperties
sourceimpl Default for OpusProperties
impl Default for OpusProperties
sourcefn default() -> OpusProperties
fn default() -> OpusProperties
Returns the “default value” for a type. Read more
sourceimpl From<OpusProperties> for FileProperties
impl From<OpusProperties> for FileProperties
sourcefn from(input: OpusProperties) -> Self
fn from(input: OpusProperties) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<OpusProperties> for OpusProperties
impl PartialEq<OpusProperties> for OpusProperties
sourcefn eq(&self, other: &OpusProperties) -> bool
fn eq(&self, other: &OpusProperties) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &OpusProperties) -> bool
fn ne(&self, other: &OpusProperties) -> bool
This method tests for !=.
impl Copy for OpusProperties
impl StructuralPartialEq for OpusProperties
Auto Trait Implementations
impl RefUnwindSafe for OpusProperties
impl Send for OpusProperties
impl Sync for OpusProperties
impl Unpin for OpusProperties
impl UnwindSafe for OpusProperties
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