bare_metal_deque
Deque for use with no-std Rust
The BareMetalDeque represents a fixed-size double-ended queue analogous to VecDeque. It is implemented internally as a ring buffer.
There are numerous other implementations of this concept available. None quite met my own needs. Here is the combination of features that distinguishes this particular implementation:
Key features:
- Runs in
no-stdRust projects. - No other dependencies.
- No
unsafecode. - Can be indexed (mutably and otherwise).
- Can be iterated.
- Implements the
CopyandClonetraits. - Expects its object type to implement the
Default,Copy, andClonetraits.