pub struct Format { /* private fields */ }Implementations§
Source§impl Format
impl Format
pub fn new( sample: SampleType, order: ByteOrder, rate: u32, channels: u16, layout: Layout, ) -> Result<Format, Reason>
pub fn sample(&self) -> SampleType
pub fn order(&self) -> ByteOrder
pub fn rate(&self) -> u32
pub fn channels(&self) -> u16
pub fn layout(&self) -> &Layout
pub fn bytes_per_frame(&self) -> usize
pub fn byte_count(&self, frames: usize) -> Result<usize, Reason>
pub fn frames_in(&self, bytes: usize) -> Result<usize, Reason>
Trait Implementations§
impl Eq for Format
impl StructuralPartialEq for Format
Auto Trait Implementations§
impl Forget for Format
impl Freeze for Format
impl Move for Format
impl RefUnwindSafe for Format
impl Send for Format
impl Sync for Format
impl Unpin for Format
impl UnsafeUnpin for Format
impl UnwindSafe for Format
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