pub trait Buffer<T> {
// Required methods
fn try_push(&mut self, item: T) -> Result<(), CapacityError<T>>;
fn as_slice(&self) -> &[T];
}
Expand description
Something which can store items sequentially in memory. This doesn’t necessarily require dynamic memory allocation.