pub trait Buffer<T> {
// Required methods
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
fn as_slice(&self) -> &[T];
fn as_mut_slice(&mut self) -> &mut [T];
fn clear(&mut self);
fn zeroize(&mut self);
}Expand description
A generic buffer interface for DSP operations.
Provides common operations for buffers used throughout the DSP system.
Implemented by AudioBuffer for audio sample storage.
Required Methods§
Sourcefn as_mut_slice(&mut self) -> &mut [T]
fn as_mut_slice(&mut self) -> &mut [T]
Get the Buffer as a mutable data slice.