Struct kernel::common::RingBuffer[][src]

pub struct RingBuffer<'a, T: 'a> {
    ring: &'a mut [T],
    head: usize,
    tail: usize,
}

Fields

Methods

impl<T: Copy, 'a> RingBuffer<'a, T>
[src]

Trait Implementations

impl<T: Copy, 'a> Queue<T> for RingBuffer<'a, T>
[src]

Remove all elements from the ring buffer.

Auto Trait Implementations

impl<'a, T> Send for RingBuffer<'a, T> where
    T: Send

impl<'a, T> Sync for RingBuffer<'a, T> where
    T: Sync