Registry / utility / ringbuffer

ringbuffer

JSON →
library0.16.0rscratesunverified

A fixed-size circular buffer for efficient FIFO operations.

# Cargo.toml [dependencies] ringbuffer = "0.16.0"
INSTALL
IMPORT
SIG · RINGBUFFER
R
ringbuffer
utilityrustv0.16.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RingBuffer
use ringbuffer::RingBuffer;

Creates a ring buffer, pushes elements, and pops the oldest one.

use ringbuffer::RingBuffer; fn main() { let mut buf = RingBuffer::new(3); buf.push(1); buf.push(2); buf.push(3); assert_eq!(buf.pop(), Some(1)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.16.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
ringbuffer — cargo add ringbuffer · libregistry