Esc

Toml_Error

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

Declaration

Toml_Error :: struct {
    kind: Toml_Error_Kind;    message: string;    span: Toml_Span;    related: Toml_Span;    line: int;    column: int;    path_bytes: [512] u8;    path_count: int;    path_truncated: bool;}

Messages are static; errors remain valid after input/document release. Columns count Unicode scalars from one, tabs count one, and spans are half-open byte ranges. related is spanless unless an earlier declaration caused the error.

See also