pub enum SampleType {
Uint8,
Int16,
Int32,
Float32,
}
Variants§
Implementations§
Source§impl SampleType
impl SampleType
pub const fn size(&self) -> SampleSize
pub const fn silence_value(&self) -> u8
Trait Implementations§
Source§impl Clone for SampleType
impl Clone for SampleType
Source§fn clone(&self) -> SampleType
fn clone(&self) -> SampleType
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 SampleType
impl Debug for SampleType
Source§impl Display for SampleType
impl Display for SampleType
Source§impl From<(SampleFormat, u16)> for SampleType
impl From<(SampleFormat, u16)> for SampleType
Source§impl From<AudioSampleFormat> for SampleType
impl From<AudioSampleFormat> for SampleType
Source§fn from(item: AudioSampleFormat) -> Self
fn from(item: AudioSampleFormat) -> Self
Converts to this type from the input type.
Source§impl From<SampleType> for AudioSampleFormat
impl From<SampleType> for AudioSampleFormat
Source§fn from(item: SampleType) -> AudioSampleFormat
fn from(item: SampleType) -> AudioSampleFormat
Converts to this type from the input type.
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<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<SampleType> for SampleType
impl From<SampleType> for SampleType
Source§fn from(value: SampleType) -> Self
fn from(value: SampleType) -> Self
Converts to this type from the input type.
Source§impl FromStr for SampleType
impl FromStr for SampleType
Source§impl PartialEq for SampleType
impl PartialEq for SampleType
Source§impl TryFrom<(SampleFormat, SampleSize)> for SampleType
impl TryFrom<(SampleFormat, SampleSize)> for SampleType
Source§impl TryFrom<SampleType> for SampleType
impl TryFrom<SampleType> for SampleType
impl Copy for SampleType
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)