Trait rb::RbInspector
source · [−]pub trait RbInspector {
fn is_empty(&self) -> bool;
fn is_full(&self) -> bool;
fn capacity(&self) -> usize;
fn slots_free(&self) -> usize;
fn count(&self) -> usize;
}
Expand description
RbInspector provides non-modifying operations on the ring buffer.
Required Methods
Returns the total capacity of the ring buffer. This is the size with which the buffer was initialized.
fn slots_free(&self) -> usize
fn slots_free(&self) -> usize
Returns the number of values that can be written until the buffer until it is full.