Trait ringtail::buffers::Buffer[][src]

pub trait Buffer<T> {
    fn len(&self) -> usize;
fn capacity(&self) -> usize;
fn clear(&mut self); fn is_empty(&self) -> bool { ... } }

Base trait that all buffers implement.

Required Methods

Returns the number of elements in the buffer.

Returns the current capacity of the buffer.

Clears all elements from the buffer and resets the length to zero.

Provided Methods

Returns true if the buffer is empty.

Implementors