Esc

Toml_Value

structextensionsince 0.36.1Source
  • macOS: Toml_Value works on macOS
  • Linux: Toml_Value works on Linux
  • Windows: Toml_Value works on Windows
  • Wasm: Toml_Value works on Wasm

Declaration

Toml_Value :: struct {
    kind: Toml_Kind;    union {
        members: [..] Toml_Member;
        text: string;
        integer: s64;
        real: float64;
        boolean: bool;
        temporal: Toml_Temporal;
        items: [..] *Toml_Value;
    }
    span: Toml_Span;    internal_index: int;    internal_parent: *Toml_Value;    internal_lookup: *Toml_Index;    internal_parent_slot: int;    internal_height: int;}

Nodes are document-owned and stay at the same address. Do not copy ownership, attach nodes from another document or introduce cycles. Members/items are insertion-ordered; their array storage may move on growth. Parsed values' spans refer to document.source.

See also