#[non_exhaustive]pub enum PcmEncoding {
Unsigned8,
Signed16,
}Expand description
A supported linear sample representation.
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.
Unsigned8
Unsigned eight-bit PCM, whose silence midpoint is 128.
Signed16
Signed native i16 samples.
Trait Implementations§
Source§impl Clone for PcmEncoding
impl Clone for PcmEncoding
Source§fn clone(&self) -> PcmEncoding
fn clone(&self) -> PcmEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PcmEncoding
impl Debug for PcmEncoding
Source§impl PartialEq for PcmEncoding
impl PartialEq for PcmEncoding
Source§fn eq(&self, other: &PcmEncoding) -> bool
fn eq(&self, other: &PcmEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PcmEncoding
impl Eq for PcmEncoding
impl StructuralPartialEq for PcmEncoding
Auto Trait Implementations§
impl Freeze for PcmEncoding
impl RefUnwindSafe for PcmEncoding
impl Send for PcmEncoding
impl Sync for PcmEncoding
impl Unpin for PcmEncoding
impl UnsafeUnpin for PcmEncoding
impl UnwindSafe for PcmEncoding
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