Struct LocalRingBuffer
pub struct LocalRingBuffer<T> { /* private fields */ }Implementations§
§impl<T: Copy + Default> LocalRingBuffer<T>
impl<T: Copy + Default> LocalRingBuffer<T>
pub fn push(&mut self, value: T)
pub fn push(&mut self, value: T)
pub fn sliding_window(&self, size: usize) -> Vec<T>
pub fn sliding_window(&self, size: usize) -> Vec<T>
pub fn clear(&mut self)
pub fn clear(&mut self)
pub fn sliding_window_into(&self, size: usize, dest: &mut [T]) -> usize
pub fn sliding_window_into(&self, size: usize, dest: &mut [T]) -> usize
pub fn sliding_window_slices(&self, size: usize) -> (&[T], &[T])
pub fn sliding_window_slices(&self, size: usize) -> (&[T], &[T])
pub fn get_recent_samples(&self, count: usize, dest: &mut [T]) -> usize
pub fn get_recent_samples(&self, count: usize, dest: &mut [T]) -> usize
Trait Implementations§
§impl<T: Clone> Clone for LocalRingBuffer<T>
impl<T: Clone> Clone for LocalRingBuffer<T>
§fn clone(&self) -> LocalRingBuffer<T>
fn clone(&self) -> LocalRingBuffer<T>
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Auto Trait Implementations§
impl<T> Freeze for LocalRingBuffer<T>
impl<T> RefUnwindSafe for LocalRingBuffer<T>where
T: RefUnwindSafe,
impl<T> Send for LocalRingBuffer<T>where
T: Send,
impl<T> Sync for LocalRingBuffer<T>where
T: Sync,
impl<T> Unpin for LocalRingBuffer<T>where
T: Unpin,
impl<T> UnwindSafe for LocalRingBuffer<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)