pub struct Ring<T, const N: usize> {
pub ops: [AtomicMemoryRing; N],
/* private fields */
}
Fields
ops: [AtomicMemoryRing; N]
Implementations
sourceimpl<T, const N: usize> Ring<T, N>
impl<T, const N: usize> Ring<T, N>
pub const fn new() -> Self
pub const fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn is_full(&self) -> bool
pub fn as_mut_slices(&mut self) -> (&mut [T], &mut [T])
pub fn clear(&mut self)
Trait Implementations
Auto Trait Implementations
impl<T, const N: usize> !RefUnwindSafe for Ring<T, N>
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> Unpin for Ring<T, N> where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Ring<T, N> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more