FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SingleOrQueue

    struct · ferroui-base · v0.5.0

    struct SingleOrQueue<T>
    

    FIFO Queue optimized for holding zero or one items.

    View source

    Members

    new

    fn new() -> Self
    

    Source

    empty

    fn empty(self: &Self) -> bool
    

    Source

    enqueue

    fn enqueue(self: &mut Self, value: T)
    

    Source

    dequeue

    fn dequeue(self: &mut Self) -> T
    

    Panics when the queue is empty.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • Default

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.