Trait ringmaster::Buffer
source · [−]pub trait Buffer {
type Item;
fn push(&self, item: Self::Item);
fn pop(&self) -> Option<Self::Item>;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
}
pub trait Buffer {
type Item;
fn push(&self, item: Self::Item);
fn pop(&self) -> Option<Self::Item>;
fn len(&self) -> usize;
fn is_empty(&self) -> bool;
}