Struct amethyst_utils::circular_buffer::CircularBuffer[][src]

pub struct CircularBuffer<A> { /* fields omitted */ }

A CircularBuffer that drops the oldest element inserted when full.

Methods

impl<A> CircularBuffer<A>
[src]

Creates a new CircularBuffer with fixed size

Add a value to the CircularBuffer Returns the popped value if the buffer is full

Get an immutable reference to the values inside the CircularBuffer

Auto Trait Implementations

impl<A> Send for CircularBuffer<A> where
    A: Send

impl<A> Sync for CircularBuffer<A> where
    A: Sync