dymokomi/luce-browser-foundation
Source of release 0.6.1
0.6.1 / src / ak / types_trie.lucb
#==============================================================================================
#
# types_trie - declarations of AK/Trie.h
#
# DESCRIPTION:
# Structs, enums, vtables, class information and cast helpers generated from AK/Trie.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: Detail::Trie (Trie2) keeps the value, optional metadata and
# children map and is generic over the value type, metadata type and value traits (the
# CRTP base type and the map template are dropped: the map is HashMap); AK::Trie
# embeds it first.
#
#==============================================================================================
# mark: Trie2 ===================================================================================
## AK::Detail::Trie (AK/Trie.h:31): a node's value, its optional metadata and its children.
pub struct Trie2[TValueType, TMetadataT, TValueTraits: Traits[TValueType]]:
pub var m_value: TValueType
pub var m_metadata: TMetadataT*? # Optional<MetadataType>: none, or a cell holding it (so metadata_value() is an lvalue)
pub var m_children: HashMap[TValueType, Trie2[TValueType, TMetadataT, TValueTraits]*, TValueTraits]
# mark: Trie ====================================================================================
## AK::Trie (AK/Trie.h:285): the Detail::Trie of a root.
pub struct Trie[TValueType, TMetadataT, TValueTraits: Traits[TValueType]]:
pub var base: Trie2[TValueType, TMetadataT, TValueTraits]