pub struct Q32<T> { /* fields omitted */ }
Expand description
MPMC queue with a capacity for 32 elements
pub const fn new() -> Self
Returns the item in the front of the queue, or None
if the queue is empty
pub fn enqueue(&self, item: T) -> Result<(), T>
Adds an item
to the end of the queue
Returns back the item
if the queue is full
impl<T> Sync for Q32<T> where
T: Send,
impl<T> Send for Q32<T> where
T: Send,
impl<T> Unpin for Q32<T> where
T: Unpin,
impl<T> Any for T where
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where
T: ?Sized,
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T where
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>