Crate slice_queue[−][src]
This library provides SliceQueue
, a optimized queue for efficient working with (byte-)slices.
It allows you to
- efficiently push an arbitrary amount of elements by either consuming them or by cloning them
from a slice (if the type supports the
Clone
trait) - efficiently popping an arbitrary amount of elements from the front
- direct access to the underlying buffer by either using
peek*
methods or by using (range-)indices - dereferencing the
SliceQueue<T>
like it's aVec<T>
(which usually results in a slice)
Structs
SliceQueue |