pub struct AudioWindow {
pub timestamp: Timestamp,
pub sample_rate: u32,
pub start_sample: u64,
pub samples: Vec<f32>,
}Expand description
Data type for audio window.
Fields§
§timestamp: TimestampTimestamp associated with this value.
sample_rate: u32Sample rate in hertz.
start_sample: u64The start sample value.
samples: Vec<f32>The samples value.
Trait Implementations§
Source§impl Clone for AudioWindow
impl Clone for AudioWindow
Source§fn clone(&self) -> AudioWindow
fn clone(&self) -> AudioWindow
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 moreSource§impl Debug for AudioWindow
impl Debug for AudioWindow
Source§impl PartialEq for AudioWindow
impl PartialEq for AudioWindow
Source§fn eq(&self, other: &AudioWindow) -> bool
fn eq(&self, other: &AudioWindow) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AudioWindow
Auto Trait Implementations§
impl Freeze for AudioWindow
impl RefUnwindSafe for AudioWindow
impl Send for AudioWindow
impl Sync for AudioWindow
impl Unpin for AudioWindow
impl UnsafeUnpin for AudioWindow
impl UnwindSafe for AudioWindow
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