#circular #buffer #no-std #core #data

nightly no-std cbuf

Non-thread-shareable, simple and efficient Circular Buffer implementation that can store N elements when full (typical circular buffer implementations store N-1) without using separate flags

2 releases

Uses old Rust 2015

0.1.1 Sep 16, 2016
0.1.0 Sep 5, 2016

#870 in Algorithms

21 downloads per month
Used in defrag

MPL-2.0 license

12KB
264 lines

cbuf - Circular buffer

Travis CI Build Status crates.io Gitter Chat
Documentation

Introduction

Non-thread-shareable, simple and efficient Circular Buffer implementation that can store N elements when full (typical circular buffer implementations store N-1) without using additional flags.

Uses only core so can be used in #[no_std] projects by using no_std feature.

Usage

In Carto.toml

[dependencies]
cbuf = "*"

In src/main.rs:

extern crate cbuf;

lib.rs:

Non-thread-shareable, simple and efficient Circular Buffer implementation that can store N elements when full (typical circular buffer implementations store N-1) without using separate flags.

Uses only core so can be used in #[no_std] projects by using no_std feature.

No runtime deps

Features

  • no_std
W