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 pop an arbitrary amount of elements from the front
- access the underlying buffer directly by either using
peek*
methods or by using (range-)indices - dereference the
SliceQueue<T>
like it's aVec<T>
(which usually results in a slice)
Structs
SliceQueue |