SingleOrQueue
struct · ferroui-base · v0.5.0
struct SingleOrQueue<T>
FIFO Queue optimized for holding zero or one items.
Members
new
fn new() -> Self
empty
fn empty(self: &Self) -> bool
enqueue
fn enqueue(self: &mut Self, value: T)
dequeue
fn dequeue(self: &mut Self) -> T
Panics when the queue is empty.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEitherDefault
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.