pub struct WaveformCache { /* private fields */ }Implementations§
Source§impl WaveformCache
impl WaveformCache
pub fn new() -> WaveformCache
pub fn bars(&self) -> &[Rect]
pub fn is_empty(&self) -> bool
pub fn invalidate(&mut self)
pub fn update( &mut self, area: Rect, peaks: &Peaks, start_peak: usize, count: usize, width_px: usize, opts: WaveformOpts, ) -> bool
pub fn update_cols( &mut self, area: Rect, cols: &[MinMax], opts: WaveformOpts, ) -> bool
Trait Implementations§
Source§impl Clone for WaveformCache
impl Clone for WaveformCache
Source§fn clone(&self) -> WaveformCache
fn clone(&self) -> WaveformCache
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 WaveformCache
impl Debug for WaveformCache
Source§impl Default for WaveformCache
impl Default for WaveformCache
Source§fn default() -> WaveformCache
fn default() -> WaveformCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WaveformCache
impl RefUnwindSafe for WaveformCache
impl Send for WaveformCache
impl Sync for WaveformCache
impl Unpin for WaveformCache
impl UnsafeUnpin for WaveformCache
impl UnwindSafe for WaveformCache
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