pub enum LpcmKind {
F32LE,
F64LE,
I16LE,
}
Variants
F32LE
F64LE
I16LE
Implementations
sourceimpl LpcmKind
impl LpcmKind
pub fn read<R: Read>(reader: &mut R) -> Result<Self>
pub fn read_and_calc_bytes<R: Read>(
reader: &mut R,
crc: &mut CRC<u32>
) -> Result<Self>
pub fn write<W: Write>(self, writer: &mut W) -> Result<()>
pub fn write_and_calc_bytes<W: Write>(
self,
writer: &mut W,
crc: &mut CRC<u32>
) -> Result<()>
pub fn from_u8(value: u8) -> Self
pub const fn to_u8(self) -> u8
pub const fn format_tag(&self) -> u16
pub const fn bits_per_sample(&self) -> u16
pub fn from_format_tag_and_bits_per_sample(
format_tag: u16,
bits_per_sample: u16
) -> Self
Trait Implementations
sourceimpl Ord for LpcmKind
impl Ord for LpcmKind
sourceimpl PartialOrd<LpcmKind> for LpcmKind
impl PartialOrd<LpcmKind> for LpcmKind
sourcefn partial_cmp(&self, other: &LpcmKind) -> Option<Ordering>
fn partial_cmp(&self, other: &LpcmKind) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for LpcmKind
impl Eq for LpcmKind
impl StructuralEq for LpcmKind
impl StructuralPartialEq for LpcmKind
Auto Trait Implementations
impl RefUnwindSafe for LpcmKind
impl Send for LpcmKind
impl Sync for LpcmKind
impl Unpin for LpcmKind
impl UnwindSafe for LpcmKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more