pub enum SampleType {
U32,
F16,
F32,
}Expand description
The type of samples in this channel.
Variants§
U32
This channel contains 32-bit unsigned int values.
F16
This channel contains 16-bit float values.
F32
This channel contains 32-bit float values.
Implementations§
Source§impl SampleType
impl SampleType
Sourcepub const fn bytes_per_sample(&self) -> usize
pub const fn bytes_per_sample(&self) -> usize
How many bytes a single sample takes up.
Sourcepub fn write<W: Write>(&self, write: &mut W) -> UnitResult
pub fn write<W: Write>(&self, write: &mut W) -> UnitResult
Without validation, write this instance to the byte stream.
Trait Implementations§
Source§impl Clone for SampleType
impl Clone for SampleType
impl Copy for SampleType
Source§impl Debug for SampleType
impl Debug for SampleType
impl Eq for SampleType
Source§impl Hash for SampleType
impl Hash 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 UnsafeUnpin 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