rbi 0.1.1

A FIFO index queue that can be used for implementing a ring buffer.
Documentation
  • Coverage
  • 90%
    9 out of 10 items documented0 out of 9 items with examples
  • Size
  • Source code size: 7.06 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 810.49 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • kaspar030

About

This library is part of RIOT-rs.

This module provides a FIFO index queue that can be used for implementing a ring buffer. It works in no_std settings.

It keeps track of indexes from 0..N (with N being a power of two).

put() marks an index "used".

get() returns an indexe that has been put() (if any) and marks it unused.

peek() returns the index that get() would return next (if any) without marking it unused.

All operations are O(1).