Struct lofty::iff::aiff::AiffProperties
source · #[non_exhaustive]pub struct AiffProperties { /* private fields */ }
Expand description
A AIFF file’s audio properties
Implementations§
source§impl AiffProperties
impl AiffProperties
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 sample_size(&self) -> u16
pub fn sample_size(&self) -> u16
Bits per sample
sourcepub fn compression_type(&self) -> Option<&AiffCompressionType>
pub fn compression_type(&self) -> Option<&AiffCompressionType>
AIFC compression type, if an AIFC file was read
Trait Implementations§
source§impl Clone for AiffProperties
impl Clone for AiffProperties
source§fn clone(&self) -> AiffProperties
fn clone(&self) -> AiffProperties
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 AiffProperties
impl Debug for AiffProperties
source§impl Default for AiffProperties
impl Default for AiffProperties
source§fn default() -> AiffProperties
fn default() -> AiffProperties
Returns the “default value” for a type. Read more
source§impl From<AiffProperties> for FileProperties
impl From<AiffProperties> for FileProperties
source§fn from(value: AiffProperties) -> Self
fn from(value: AiffProperties) -> Self
Converts to this type from the input type.
source§impl PartialEq for AiffProperties
impl PartialEq for AiffProperties
source§fn eq(&self, other: &AiffProperties) -> bool
fn eq(&self, other: &AiffProperties) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for AiffProperties
impl StructuralEq for AiffProperties
impl StructuralPartialEq for AiffProperties
Auto Trait Implementations§
impl RefUnwindSafe for AiffProperties
impl Send for AiffProperties
impl Sync for AiffProperties
impl Unpin for AiffProperties
impl UnwindSafe for AiffProperties
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more