Struct lofty::properties::FileProperties
source · #[non_exhaustive]pub struct FileProperties { /* private fields */ }Expand description
Various immutable audio properties
Implementations§
source§impl FileProperties
impl FileProperties
sourcepub const fn new(
duration: Duration,
overall_bitrate: Option<u32>,
audio_bitrate: Option<u32>,
sample_rate: Option<u32>,
bit_depth: Option<u8>,
channels: Option<u8>,
channel_mask: Option<ChannelMask>
) -> Self
pub const fn new( duration: Duration, overall_bitrate: Option<u32>, audio_bitrate: Option<u32>, sample_rate: Option<u32>, bit_depth: Option<u8>, channels: Option<u8>, channel_mask: Option<ChannelMask> ) -> 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)
sourcepub fn channel_mask(&self) -> Option<ChannelMask>
pub fn channel_mask(&self) -> Option<ChannelMask>
Channel mask
Trait Implementations§
source§impl Clone for FileProperties
impl Clone for FileProperties
source§fn clone(&self) -> FileProperties
fn clone(&self) -> FileProperties
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 FileProperties
impl Debug for FileProperties
source§impl Default for FileProperties
impl Default for FileProperties
source§impl From<AACProperties> for FileProperties
impl From<AACProperties> for FileProperties
source§fn from(input: AACProperties) -> Self
fn from(input: AACProperties) -> Self
Converts to this type from the input type.
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 From<ApeProperties> for FileProperties
impl From<ApeProperties> for FileProperties
source§fn from(input: ApeProperties) -> Self
fn from(input: ApeProperties) -> Self
Converts to this type from the input type.
source§impl From<FlacProperties> for FileProperties
impl From<FlacProperties> for FileProperties
source§fn from(input: FlacProperties) -> Self
fn from(input: FlacProperties) -> Self
Converts to this type from the input type.
source§impl From<Mp4Properties> for FileProperties
impl From<Mp4Properties> for FileProperties
source§fn from(input: Mp4Properties) -> Self
fn from(input: Mp4Properties) -> Self
Converts to this type from the input type.
source§impl From<MpcProperties> for FileProperties
impl From<MpcProperties> for FileProperties
source§fn from(input: MpcProperties) -> Self
fn from(input: MpcProperties) -> Self
Converts to this type from the input type.
source§impl From<MpcSv4to6Properties> for FileProperties
impl From<MpcSv4to6Properties> for FileProperties
source§fn from(input: MpcSv4to6Properties) -> Self
fn from(input: MpcSv4to6Properties) -> Self
Converts to this type from the input type.
source§impl From<MpcSv7Properties> for FileProperties
impl From<MpcSv7Properties> for FileProperties
source§fn from(input: MpcSv7Properties) -> Self
fn from(input: MpcSv7Properties) -> Self
Converts to this type from the input type.
source§impl From<MpcSv8Properties> for FileProperties
impl From<MpcSv8Properties> for FileProperties
source§fn from(input: MpcSv8Properties) -> Self
fn from(input: MpcSv8Properties) -> Self
Converts to this type from the input type.
source§impl From<MpegProperties> for FileProperties
impl From<MpegProperties> for FileProperties
source§fn from(input: MpegProperties) -> Self
fn from(input: MpegProperties) -> Self
Converts to this type from the input type.
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 From<SpeexProperties> for FileProperties
impl From<SpeexProperties> for FileProperties
source§fn from(input: SpeexProperties) -> Self
fn from(input: SpeexProperties) -> Self
Converts to this type from the input type.
source§impl From<VorbisProperties> for FileProperties
impl From<VorbisProperties> for FileProperties
source§fn from(input: VorbisProperties) -> Self
fn from(input: VorbisProperties) -> Self
Converts to this type from the input type.
source§impl From<WavPackProperties> for FileProperties
impl From<WavPackProperties> for FileProperties
source§fn from(input: WavPackProperties) -> Self
fn from(input: WavPackProperties) -> Self
Converts to this type from the input type.
source§impl From<WavProperties> for FileProperties
impl From<WavProperties> for FileProperties
source§fn from(input: WavProperties) -> Self
fn from(input: WavProperties) -> Self
Converts to this type from the input type.
source§impl PartialEq for FileProperties
impl PartialEq for FileProperties
source§fn 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 ==.impl Eq for FileProperties
impl StructuralPartialEq for FileProperties
Auto Trait Implementations§
impl Freeze for FileProperties
impl RefUnwindSafe for FileProperties
impl Send for FileProperties
impl Sync for FileProperties
impl Unpin for FileProperties
impl UnwindSafe for FileProperties
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