pub struct AudioBatch<'a> {
pub channels: u8,
pub sample_rate: u32,
pub samples: &'a [f32],
}Fields§
§channels: u8§sample_rate: u32§samples: &'a [f32]Trait Implementations§
Source§impl<'a> Clone for AudioBatch<'a>
impl<'a> Clone for AudioBatch<'a>
Source§fn clone(&self) -> AudioBatch<'a>
fn clone(&self) -> AudioBatch<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AudioBatch<'a>
Source§impl<'a> Debug for AudioBatch<'a>
impl<'a> Debug for AudioBatch<'a>
Source§impl<'a> Default for AudioBatch<'a>
impl<'a> Default for AudioBatch<'a>
Source§impl<'a> PartialEq for AudioBatch<'a>
impl<'a> PartialEq for AudioBatch<'a>
Source§fn eq(&self, other: &AudioBatch<'a>) -> bool
fn eq(&self, other: &AudioBatch<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for AudioBatch<'a>
Auto Trait Implementations§
impl<'a> Freeze for AudioBatch<'a>
impl<'a> RefUnwindSafe for AudioBatch<'a>
impl<'a> Send for AudioBatch<'a>
impl<'a> Sync for AudioBatch<'a>
impl<'a> Unpin for AudioBatch<'a>
impl<'a> UnsafeUnpin for AudioBatch<'a>
impl<'a> UnwindSafe for AudioBatch<'a>
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