pub struct RingBuf<T, const N: usize> { /* private fields */ }Implementations§
Source§impl<T, const N: usize> RingBuf<T, N>
impl<T, const N: usize> RingBuf<T, N>
pub const INIT_0: RingBuf<T, N>
pub const fn new() -> Self
pub fn has_split_prod(&self) -> bool
pub fn has_split_cons(&self) -> bool
pub fn has_split(&self) -> bool
pub fn split_prod(&self) -> Result<Producer<'_, T, N>, ()>
pub fn split_cons(&self) -> Result<Consumer<'_, T, N>, ()>
pub fn split(&self) -> Result<(Producer<'_, T, N>, Consumer<'_, T, N>), ()>
pub fn len(&self) -> u32
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for RingBuf<T, N>
impl<T, const N: usize> !RefUnwindSafe for RingBuf<T, N>
impl<T, const N: usize> Send for RingBuf<T, N>where
T: Send,
impl<T, const N: usize> !Sync for RingBuf<T, N>
impl<T, const N: usize> Unpin for RingBuf<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for RingBuf<T, N>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more