pub trait ChunkBuffer<T: Send>: IntoIterator<Item = T> + ParallelSliceMut<T> + Send {
    // Required methods
    fn push(&mut self, item: T);
    fn len(&self) -> usize;
    fn is_full(&self) -> bool;
}
Expand description

Base limited buffer interface. Provides methods for pushing data to the buffer and checking buffer state.

Required Methods§

source

fn push(&mut self, item: T)

Adds a new element to the buffer.

Arguments
  • item - Item to be added to the buffer
source

fn len(&self) -> usize

Returns the buffer length.

source

fn is_full(&self) -> bool

Checks if the buffer reached the limit.

Implementors§