Skip to main content

ChunkBuffer

Trait ChunkBuffer 

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§