#[non_exhaustive]pub enum CpuBatchSamples {
U8(Vec<u8>),
U16(Vec<u16>),
I16(Vec<i16>),
}Expand description
Native-width contiguous samples returned by the CPU batch decoder.
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.
U8(Vec<u8>)
Unsigned samples with precision at most eight bits.
U16(Vec<u16>)
Unsigned samples with precision from nine through sixteen bits.
I16(Vec<i16>)
Signed samples with precision at most sixteen bits.
Implementations§
Source§impl CpuBatchSamples
impl CpuBatchSamples
Sourcepub const fn sample_type(&self) -> NativeSampleType
pub const fn sample_type(&self) -> NativeSampleType
Native sample type stored by this owner.
Trait Implementations§
Source§impl Debug for CpuBatchSamples
impl Debug for CpuBatchSamples
impl Eq for CpuBatchSamples
Source§impl PartialEq for CpuBatchSamples
impl PartialEq for CpuBatchSamples
impl StructuralPartialEq for CpuBatchSamples
Auto Trait Implementations§
impl Freeze for CpuBatchSamples
impl RefUnwindSafe for CpuBatchSamples
impl Send for CpuBatchSamples
impl Sync for CpuBatchSamples
impl Unpin for CpuBatchSamples
impl UnsafeUnpin for CpuBatchSamples
impl UnwindSafe for CpuBatchSamples
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more