Struct wheelbuf::WheelBuf [] [src]

pub struct WheelBuf<C, I> where
    C: AsMut<[I]> + AsRef<[I]>, 
{ /* fields omitted */ }

A multi-read Ringbuffer.

The Write trait is implemented for char buffers, see below.

Methods

impl<C, I> WheelBuf<C, I> where
    C: AsMut<[I]> + AsRef<[I]>, 
[src]

Creates a new WheelBuf.

data is a backing data structure that must be convertible into a slice. The len() of data determines the size of the buffer.

Total number of entries seen.

A non-resetting counter of the number of entries added.

Add item to wheel buffer.

Capacity of wheel buffer.

Always equal to len() of underlying data.

Number of items in buffer.

Creates an iterator over buffer.

Trait Implementations

impl<C: Debug, I: Debug> Debug for WheelBuf<C, I> where
    C: AsMut<[I]> + AsRef<[I]>, 
[src]

Formats the value using the given formatter.

impl<C> Write for WheelBuf<C, char> where
    C: AsMut<[char]> + AsRef<[char]>, 
[src]

Writes a slice of bytes into this writer, returning whether the write succeeded. Read more

Writes a [char] into this writer, returning whether the write succeeded. Read more

Glue for usage of the [write!] macro with implementors of this trait. Read more