Struct lofty::FileProperties
source · [−]#[non_exhaustive]pub struct FileProperties { /* private fields */ }Expand description
Various immutable audio properties
Implementations
sourceimpl FileProperties
impl FileProperties
sourcepub fn new(
duration: Duration,
overall_bitrate: Option<u32>,
audio_bitrate: Option<u32>,
sample_rate: Option<u32>,
bit_depth: Option<u8>,
channels: Option<u8>
) -> Self
pub fn new(
duration: Duration,
overall_bitrate: Option<u32>,
audio_bitrate: Option<u32>,
sample_rate: Option<u32>,
bit_depth: Option<u8>,
channels: Option<u8>
) -> Self
Create a new 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 moresourceimpl Debug for FileProperties
impl Debug for FileProperties
sourceimpl Default for FileProperties
impl Default for FileProperties
sourceimpl From<AACProperties> for FileProperties
impl From<AACProperties> for FileProperties
sourcefn from(input: AACProperties) -> Self
fn from(input: AACProperties) -> Self
Converts to this type from the input type.
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<MPEGProperties> for FileProperties
impl From<MPEGProperties> for FileProperties
sourcefn from(input: MPEGProperties) -> Self
fn from(input: MPEGProperties) -> 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<WavPackProperties> for FileProperties
impl From<WavPackProperties> for FileProperties
sourcefn from(input: WavPackProperties) -> Self
fn from(input: WavPackProperties) -> 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
impl Eq for FileProperties
impl StructuralEq for FileProperties
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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