Struct lofty::ogg::OpusProperties
source · #[non_exhaustive]pub struct OpusProperties { /* private fields */ }Expand description
An Opus file’s audio properties
Implementations§
source§impl 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§
source§impl Clone for OpusProperties
impl Clone for OpusProperties
source§fn clone(&self) -> OpusProperties
fn clone(&self) -> OpusProperties
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for OpusProperties
impl Debug for OpusProperties
source§impl Default for OpusProperties
impl Default for OpusProperties
source§fn default() -> OpusProperties
fn default() -> OpusProperties
Returns the “default value” for a type. Read more
source§impl From<OpusProperties> for FileProperties
impl From<OpusProperties> for FileProperties
source§fn from(input: OpusProperties) -> Self
fn from(input: OpusProperties) -> Self
Converts to this type from the input type.
source§impl PartialEq<OpusProperties> for OpusProperties
impl PartialEq<OpusProperties> for OpusProperties
source§fn 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 ==.