Esc

Toml_Unknown

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

Declaration

Toml_Unknown :: struct {
    path: string;    start: int;    value: int;    end: int;    header: bool;}

One key a typed decode had no field for, collected into a struct's @toml(unknown) list. path is the dotted key below that table (a.b for a.b = 1 or [x.a.b] under x); start and end are the half-open source bytes of the statement and value is where an assignment's value begins (-1 for headers), so the value text is source[value:end]. header marks [table] and [[table]] lines.

See also