Enum SampleFormat

#[non_exhaustive]
#[repr(u16)]
pub enum SampleFormat

Variants

Uint = 1
Int = 2
IEEEFP = 3
Void = 4
Unknown(u16)

An unknown extension sample format

Implementations

impl SampleFormat

const fn from_u16(val: u16) -> Option<Self>
const fn from_u16_exhaustive(unknown: u16) -> Self
const fn to_u16(&self) -> u16

Trait Implementations

impl Clone for SampleFormat

fn clone(&self) -> SampleFormat

impl Copy for SampleFormat

impl Debug for SampleFormat

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

impl Eq for SampleFormat

impl Hash for SampleFormat

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for SampleFormat

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

impl StructuralPartialEq for SampleFormat

Auto Trait Implementations

impl Freeze for SampleFormat

impl RefUnwindSafe for SampleFormat

impl Send for SampleFormat

impl Sync for SampleFormat

impl Unpin for SampleFormat

impl UnsafeUnpin for SampleFormat

impl UnwindSafe for SampleFormat

Blanket Implementations

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

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

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

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

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

impl<T> From<T> for SampleFormat

fn from(t: T) -> T

Returns the argument unchanged.

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

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

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for SampleFormat 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.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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