Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-foundation

Source of release 0.6.1

0.6.1 / src / ak / types_queue.lucb

#==============================================================================================
#
#   types_queue - declarations of AK/Queue.h
#
#   DESCRIPTION:
#       Structs, enums, vtables, class information and cast helpers generated from AK/Queue.h
#       (Ladybird 47c82b38d0) by the skeleton generator (DESIGN.md ยง4.4). Regenerate rather
#       than edit, except to fill a field the generator could not map.
#
#       Edited by region r01: the segments are an IntrusiveList of QueueSegment[T] (the
#       donor's nested struct); segment_size is the default 1000.
#
#==============================================================================================

## AK::Queue (AK/Queue.h:16): a zero Queue is empty.
pub struct Queue[T]:
    pub var m_segments: IntrusiveList[QueueSegment[T], QueueSegment[T]*?]
    pub var m_index_into_first: usize  # C++ default: { 0 }
    pub var m_size: usize  # C++ default: { 0 }

## AK::Queue::QueueSegment (AK/Queue.h:103).
pub struct QueueSegment[T]:
    pub var data: Vector[T]
    pub var node: IntrusiveListNode[QueueSegment[T], QueueSegment[T]*?]