Struct hexodsp::monitor::MinMaxMonitorSamples
source · [−]Expand description
Represents a bunch of min/max samples. Usually copied from the MonitorProcessor thread to the frontend if required.
Fields
samples: [(f32, f32); 160]
buf_ptr: usize
Implementations
sourceimpl MinMaxMonitorSamples
impl MinMaxMonitorSamples
pub fn new() -> Self
fn copy_from(&mut self, min_max_slice: (usize, &[(f32, f32)]))
fn copy_to(&self, sms: &mut MinMaxMonitorSamples)
sourcepub fn at(&self, offs: usize) -> &(f32, f32)
pub fn at(&self, offs: usize) -> &(f32, f32)
Gets the sample at the offset relative to the start of the min_max_slice.
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
Trait Implementations
sourceimpl Clone for MinMaxMonitorSamples
impl Clone for MinMaxMonitorSamples
sourcefn clone(&self) -> MinMaxMonitorSamples
fn clone(&self) -> MinMaxMonitorSamples
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for MinMaxMonitorSamples
impl Debug for MinMaxMonitorSamples
sourceimpl Default for MinMaxMonitorSamples
impl Default for MinMaxMonitorSamples
sourceimpl Index<usize> for MinMaxMonitorSamples
impl Index<usize> for MinMaxMonitorSamples
impl Copy for MinMaxMonitorSamples
Auto Trait Implementations
impl RefUnwindSafe for MinMaxMonitorSamples
impl Send for MinMaxMonitorSamples
impl Sync for MinMaxMonitorSamples
impl Unpin for MinMaxMonitorSamples
impl UnwindSafe for MinMaxMonitorSamples
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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