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

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

#27 in #circular


Used in defrag

MPL-2.0 license

12KB
264 lines

cbuf - Circular buffer

Travis CI Build Status 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