#[non_exhaustive]pub enum Format {
Show 48 variants
Unknown,
S8,
U8,
S16LE,
S16BE,
U16LE,
U16BE,
S24LE,
S24BE,
U24LE,
U24BE,
S32LE,
S32BE,
U32LE,
U32BE,
FloatLE,
FloatBE,
Float64LE,
Float64BE,
IEC958SubframeLE,
IEC958SubframeBE,
MuLaw,
ALaw,
ImaAdPCM,
MPEG,
GSM,
Special,
S243LE,
S243BE,
U243LE,
U243BE,
S203LE,
S203BE,
U203LE,
U203BE,
S183LE,
S183BE,
U183LE,
U183BE,
G72324,
G723241B,
G72340,
G723401B,
DSDU8,
DSDU16LE,
DSDU32LE,
DSDU16BE,
DSDU32BE,
}
Expand description
SND_PCM_FORMAT_xxx constants
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
S8
U8
S16LE
S16BE
U16LE
U16BE
S24LE
S24BE
U24LE
U24BE
S32LE
S32BE
U32LE
U32BE
FloatLE
FloatBE
Float64LE
Float64BE
IEC958SubframeLE
IEC958SubframeBE
MuLaw
ALaw
ImaAdPCM
MPEG
GSM
Special
S243LE
S243BE
U243LE
U243BE
S203LE
S203BE
U203LE
U203BE
S183LE
S183BE
U183LE
U183BE
G72324
G723241B
G72340
G723401B
DSDU8
DSDU16LE
DSDU32LE
DSDU16BE
DSDU32BE
Implementations§
source§impl Format
impl Format
pub const fn s16() -> Format
pub const fn u16() -> Format
pub const fn s32() -> Format
pub const fn u32() -> Format
pub const fn float() -> Format
pub const fn float64() -> Format
pub const fn s24() -> Format
pub const fn s24_3() -> Format
pub const fn u24() -> Format
pub const fn u24_3() -> Format
pub const fn s20_3() -> Format
pub const fn u20_3() -> Format
pub const fn s18_3() -> Format
pub const fn u18_3() -> Format
pub const fn dsd_u16() -> Format
pub const fn dsd_u32() -> Format
pub const fn iec958_subframe() -> Format
pub fn physical_width(&self) -> Result<i32>
pub fn width(&self) -> Result<i32>
pub fn silence_16(&self) -> u16
pub fn little_endian(&self) -> Result<bool>
Trait Implementations§
source§impl Ord for Format
impl Ord for Format
source§impl PartialEq<Format> for Format
impl PartialEq<Format> for Format
source§impl PartialOrd<Format> for Format
impl PartialOrd<Format> for Format
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Format
impl Eq for Format
impl StructuralEq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnwindSafe for Format
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