Enum audio_streams::SampleFormat 
source · pub enum SampleFormat {
    U8,
    S16LE,
    S24LE,
    S32LE,
}Variants§
Implementations§
source§impl SampleFormat
 
impl SampleFormat
pub fn sample_bytes(self) -> usize
Trait Implementations§
source§impl Clone for SampleFormat
 
impl Clone for SampleFormat
source§fn clone(&self) -> SampleFormat
 
fn clone(&self) -> SampleFormat
Returns a copy 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 SampleFormat
 
impl Debug for SampleFormat
source§impl<'de> Deserialize<'de> for SampleFormat
 
impl<'de> Deserialize<'de> for SampleFormat
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for SampleFormat
 
impl Display for SampleFormat
source§impl FromStr for SampleFormat
 
impl FromStr for SampleFormat
source§impl PartialEq for SampleFormat
 
impl PartialEq for SampleFormat
source§fn eq(&self, other: &SampleFormat) -> bool
 
fn eq(&self, other: &SampleFormat) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl Serialize for SampleFormat
 
impl Serialize for SampleFormat
impl Copy for SampleFormat
impl Eq 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 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
source§impl<T> CloneToUninit for Twhere
    T: Copy,
 
impl<T> CloneToUninit for Twhere
    T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)