Struct RingBuffer
pub struct RingBuffer<T> { /* private fields */ }Implementations§
§impl<T: Copy + Default> RingBuffer<T>
impl<T: Copy + Default> RingBuffer<T>
pub fn push(&self, value: T)
pub fn push(&self, value: T)
pub fn sliding_window(&self, size: usize) -> Vec<T>
pub fn sliding_window(&self, size: usize) -> Vec<T>
pub fn clear(&self)
pub fn clear(&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 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: Copy + Default> Clone for RingBuffer<T>
impl<T: Copy + Default> Clone for RingBuffer<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 RingBuffer<T>
impl<T> RefUnwindSafe for RingBuffer<T>
impl<T> Send for RingBuffer<T>
impl<T> Sync for RingBuffer<T>
impl<T> Unpin for RingBuffer<T>
impl<T> UnwindSafe for RingBuffer<T>
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)