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