#[non_exhaustive]pub enum SampleFormat {
S16,
F32,
F32Planar,
}Expand description
Raw audio sample layout. A small starter subset.
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.
S16
Signed 16-bit, interleaved.
F32
32-bit float, interleaved.
F32Planar
32-bit float, planar (one buffer per channel).
Implementations§
Source§impl SampleFormat
impl SampleFormat
Trait Implementations§
Source§impl Clone for SampleFormat
impl Clone for SampleFormat
impl Copy for SampleFormat
Source§impl Debug for SampleFormat
impl Debug for SampleFormat
impl Eq for SampleFormat
Source§impl Hash for SampleFormat
impl Hash for SampleFormat
Source§impl PartialEq for SampleFormat
impl PartialEq for SampleFormat
impl StructuralPartialEq for SampleFormat
Auto Trait Implementations§
impl Freeze for SampleFormat
impl RefUnwindSafe for SampleFormat
impl Send for SampleFormat
impl Sync for SampleFormat
impl Unpin for SampleFormat
impl UnsafeUnpin for SampleFormat
impl UnwindSafe for SampleFormat
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