Enum mp4ameta::SampleRate[][src]

pub enum SampleRate {
Show variants Hz96000, Hz88200, Hz64000, Hz48000, Hz44100, Hz32000, Hz24000, Hz22050, Hz16000, Hz12000, Hz11025, Hz8000, Hz7350,
}

An enum representing the sample rate of an MPEG-4 audio track.

Variants

Hz96000

A Sample rate of 96000Hz

Hz88200

A Sample rate of 88200Hz

Hz64000

A Sample rate of 64000Hz

Hz48000

A Sample rate of 48000Hz

Hz44100

A Sample rate of 44100Hz

Hz32000

A Sample rate of 32000Hz

Hz24000

A Sample rate of 24000Hz

Hz22050

A Sample rate of 24050Hz

Hz16000

A Sample rate of 16000Hz

Hz12000

A Sample rate of 12000Hz

Hz11025

A Sample rate of 11050Hz

Hz8000

A Sample rate of 8000Hz

Hz7350

A Sample rate of 7350Hz

Implementations

impl SampleRate[src]

pub const fn hz(&self) -> u32[src]

Returns the sample rate in Hz.

Trait Implementations

impl Clone for SampleRate[src]

impl Copy for SampleRate[src]

impl Debug for SampleRate[src]

impl Display for SampleRate[src]

impl Eq for SampleRate[src]

impl PartialEq<SampleRate> for SampleRate[src]

impl StructuralEq for SampleRate[src]

impl StructuralPartialEq for SampleRate[src]

impl TryFrom<u8> for SampleRate[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.