Module sample::ring_buffer[][src]

Items related to the implementation of ring buffers.

The primary items of interest in this module include:

  • The Slice and SliceMut traits - implemented for types that may be used as the underlying buffer in Fixed and Bounded ring buffers.
  • The Fixed ring buffer type.
  • The Bounded ring buffer type.

Structs

Bounded

A ring buffer with an upper bound on its length.

DrainBounded

An iterator that drains the ring buffer by popping each element one at a time.

Fixed

A ring buffer with a fixed length.

Traits

FixedSizeArray

Types that may be used as a constant-length buffer underlying a Bounded ring buffer.

Slice

Types that may be used as a data slice for Fixed and Bounded ring buffers.

SliceMut

Types that may be used as a data slice for mutable Fixed and Bounded ring buffers.