Skip to main content

PcmRate

Enum PcmRate 

Source
#[repr(u8)]
pub enum PcmRate {
Show 14 variants Rate5512 = 0, Rate8000 = 1, Rate11025 = 2, Rate16000 = 3, Rate22050 = 4, Rate32000 = 5, Rate44100 = 6, Rate48000 = 7, Rate64000 = 8, Rate88200 = 9, Rate96000 = 10, Rate176400 = 11, Rate192000 = 12, Rate384000 = 13,
}
Expand description

A PCM frame rate.

Variants§

§

Rate5512 = 0

5512 Hz PCM rate.

§

Rate8000 = 1

8000 Hz PCM rate.

§

Rate11025 = 2

11025 Hz PCM rate.

§

Rate16000 = 3

16000 Hz PCM rate.

§

Rate22050 = 4

22050 Hz PCM rate.

§

Rate32000 = 5

32000 Hz PCM rate.

§

Rate44100 = 6

44100 Hz PCM rate.

§

Rate48000 = 7

48000 Hz PCM rate.

§

Rate64000 = 8

64000 Hz PCM rate.

§

Rate88200 = 9

88200 Hz PCM rate.

§

Rate96000 = 10

96000 Hz PCM rate.

§

Rate176400 = 11

176400 Hz PCM rate.

§

Rate192000 = 12

192000 Hz PCM rate.

§

Rate384000 = 13

384000 Hz PCM rate.

Trait Implementations§

Source§

impl Clone for PcmRate

Source§

fn clone(&self) -> PcmRate

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for PcmRate

Source§

impl Debug for PcmRate

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for PcmRate

Source§

fn default() -> PcmRate

Returns the “default value” for a type. Read more
Source§

impl Eq for PcmRate

Source§

impl From<PcmRate> for PcmRates

Source§

fn from(rate: PcmRate) -> Self

Converts to this type from the input type.
Source§

impl From<PcmRate> for u8

Source§

fn from(rate: PcmRate) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for PcmRate

Source§

fn eq(&self, other: &PcmRate) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PcmRate

Auto Trait Implementations§

§

impl Freeze for PcmRate

§

impl RefUnwindSafe for PcmRate

§

impl Send for PcmRate

§

impl Sync for PcmRate

§

impl Unpin for PcmRate

§

impl UnsafeUnpin for PcmRate

§

impl UnwindSafe for PcmRate

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.