pub enum SampleFormat {
U8 = 0,
S16 = 1,
S32 = 2,
S64 = 3,
F32 = 4,
F64 = 5,
U8P = 6,
S16P = 7,
S32P = 8,
S64P = 9,
F32P = 10,
F64P = 11,
}Variants§
U8 = 0
S16 = 1
S32 = 2
S64 = 3
F32 = 4
F64 = 5
U8P = 6
S16P = 7
S32P = 8
S64P = 9
F32P = 10
F64P = 11
Implementations§
Source§impl SampleFormat
impl SampleFormat
pub fn bits(&self) -> u8
pub fn bytes(&self) -> u8
pub fn is_planar(&self) -> bool
pub fn is_packed(&self) -> bool
pub fn planar_sample_format(&self) -> SampleFormat
pub fn packed_sample_format(&self) -> SampleFormat
Trait Implementations§
Source§impl Clone for SampleFormat
impl Clone for SampleFormat
Source§fn clone(&self) -> SampleFormat
fn clone(&self) -> SampleFormat
Returns a duplicate of the value. Read more
1.0.0§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 From<SampleFormat> for usize
impl From<SampleFormat> for usize
Source§fn from(value: SampleFormat) -> Self
fn from(value: SampleFormat) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SampleFormat
impl PartialEq for SampleFormat
Source§impl TryFrom<usize> for SampleFormat
impl TryFrom<usize> 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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more