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]
T: Eq,
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
Auto Trait Implementations
impl<T, const N: usize> LooseTxInUnsafe for Ring<T, N> where
T: LooseTxInUnsafe,
T: LooseTxInUnsafe,
impl<T, const N: usize> PSafe for Ring<T, N> where
T: PSafe,
T: PSafe,
impl<T, const N: usize> PSend for Ring<T, N> where
T: PSend,
T: PSend,
impl<T, const N: usize> RefUnwindSafe for Ring<T, N> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, const N: usize> Send for Ring<T, N> where
T: Send,
T: Send,
impl<T, const N: usize> Sync for Ring<T, N> where
T: Sync,
T: Sync,
impl<T, const N: usize> TxInSafe for Ring<T, N> where
T: TxInSafe,
T: TxInSafe,
impl<T, const N: usize> TxOutSafe for Ring<T, N> where
T: TxOutSafe,
T: TxOutSafe,
impl<T, const N: usize> Unpin for Ring<T, N> where
T: Unpin,
T: Unpin,
impl<T, const N: usize> UnwindSafe for Ring<T, N> where
T: UnwindSafe,
T: UnwindSafe,
impl<T, const N: usize> VSafe for Ring<T, N> where
T: VSafe,
T: VSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,