pub enum SampleType {
U8,
U16,
U32,
U64,
I8,
I16,
I32,
I64,
F32,
F64,
}Expand description
The underlying data type of the samples
Variants§
U8
Samples using the u8 type
U16
Samples using the u16 type
U32
Samples using the u32 type
U64
Samples using the u64 type
I8
Samples using the i8 type
I16
Samples using the i16 type
I32
Samples using the i32 type
I64
Samples using the i64 type
F32
Samples using the f32 type
F64
Samples using the f64 type
Trait Implementations§
Source§impl Clone for SampleType
impl Clone for SampleType
Source§fn clone(&self) -> SampleType
fn clone(&self) -> SampleType
Returns a duplicate of the value. Read more
1.0.0 · 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 SampleType
impl Debug for SampleType
Source§impl From<SampleType> for SampleFormat
impl From<SampleType> for SampleFormat
Source§fn from(value: SampleType) -> Self
fn from(value: SampleType) -> Self
Converts to this type from the input type.
Source§impl From<f32> for SampleType
impl From<f32> for SampleType
Source§impl From<f64> for SampleType
impl From<f64> for SampleType
Source§impl From<i16> for SampleType
impl From<i16> for SampleType
Source§impl From<i32> for SampleType
impl From<i32> for SampleType
Source§impl From<i64> for SampleType
impl From<i64> for SampleType
Source§impl From<i8> for SampleType
impl From<i8> for SampleType
Source§impl From<u16> for SampleType
impl From<u16> for SampleType
Source§impl From<u32> for SampleType
impl From<u32> for SampleType
Source§impl From<u64> for SampleType
impl From<u64> for SampleType
Source§impl From<u8> for SampleType
impl From<u8> for SampleType
Source§impl PartialEq for SampleType
impl PartialEq for SampleType
impl StructuralPartialEq for SampleType
Auto Trait Implementations§
impl Freeze for SampleType
impl RefUnwindSafe for SampleType
impl Send for SampleType
impl Sync for SampleType
impl Unpin for SampleType
impl UnwindSafe for SampleType
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