Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-foundation

Source of release 0.6.1

0.6.1 / src / gc / types_root.lucb

#==============================================================================================
#
#   types_root - declarations of Libraries/LibGC/Root.h
#
#   DESCRIPTION:
#       Structs, enums, vtables, class information and cast helpers generated from
#       Libraries/LibGC/Root.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.
#
#==============================================================================================

# mark: RootImpl ================================================================================

## GC::RootImpl (Libraries/LibGC/Root.h:19).
pub struct RootImpl:
    pub var m_cell: Cell*?
    pub var m_location: ak.SourceLocation
    pub var m_list_node: ListNode

# mark: Root ====================================================================================

## GC::Root<T> (Libraries/LibGC/Root.h:47): a handle that keeps its cell alive, for pointers kept
## outside managed memory (DESIGN.md §2.6, §3.3 rule 4). Copies share one RootImpl; the owner
## releases it once with root_release (C++ counts the references and releases on the last).
pub struct Root[T]:
    pub var m_impl: RootImpl*?