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