ringobuf 0.1.0

Stack based ring buffer (no_std)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
# ringobuf
[![crates.io](https://img.shields.io/crates/v/ringobuf)](https://crates.io/crates/ringobuf)
[![docs.rs](https://img.shields.io/docsrs/ringobuf)](https://docs.rs/ringobuf)
[![Please don't upload to GitHub](https://nogithub.codeberg.page/badge.svg)](https://nogithub.codeberg.page)

A `stack` based `ring buffer` for `no_std` enviromnents.

The size of the buffer is guaranteed to be a power of 2 to achieve faster
modulo operation through masking (no division operation used).

Uses rust nightly because of `generic_const_exprs`. Users need to also enable
that feature when creating the buffer with `#![feature(generic_const_exprs)]`.