Struct corundum::utils::Ring[][src]

#[repr(C)]
pub struct Ring<T, const N: usize> { /* fields omitted */ }

Implementations

impl<T, const N: usize> Ring<T, N>[src]

pub fn new() -> Self[src]

pub fn push(&mut self, x: T)[src]

pub fn push_sync(&mut self, x: T)[src]

pub fn sync_all(&self)[src]

pub fn contains(&self, x: T) -> bool where
    T: Eq
[src]

pub fn clear(&mut self)[src]

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

impl<T: Copy, const N: usize> Ring<T, N>[src]

pub fn pop(&mut self) -> Option<T>[src]

pub fn foreach<F: FnMut(T)>(&self, f: F)[src]

pub fn drain_atomic<F: FnMut(T), E: Fn()>(&mut self, f: F, end: E)[src]

pub fn foreach_reverse<F: FnMut(T)>(&self, f: F)[src]

pub fn find<F: Fn(T) -> bool>(&self, f: F) -> bool[src]

Trait Implementations

impl<T: Debug, const N: usize> Debug for Ring<T, N>[src]

Auto Trait Implementations

impl<T, const N: usize> LooseTxInUnsafe for Ring<T, N> where
    T: LooseTxInUnsafe

impl<T, const N: usize> PSafe for Ring<T, N> where
    T: PSafe

impl<T, const N: usize> PSend for Ring<T, N> where
    T: PSend

impl<T, const N: usize> RefUnwindSafe for Ring<T, N> where
    T: RefUnwindSafe

impl<T, const N: usize> Send for Ring<T, N> where
    T: Send

impl<T, const N: usize> Sync for Ring<T, N> where
    T: Sync

impl<T, const N: usize> TxInSafe for Ring<T, N> where
    T: TxInSafe

impl<T, const N: usize> TxOutSafe for Ring<T, N> where
    T: TxOutSafe

impl<T, const N: usize> Unpin for Ring<T, N> where
    T: Unpin

impl<T, const N: usize> UnwindSafe for Ring<T, N> where
    T: UnwindSafe

impl<T, const N: usize> VSafe for Ring<T, N> where
    T: VSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,