Esc

toml_new_value

procedureextensionsince 0.36.1Source
  • macOS: toml_new_value works on macOS
  • Linux: toml_new_value works on Linux
  • Windows: toml_new_value works on Windows
  • Wasm: toml_new_value works on Wasm

Allocates a detached node. Its kind stays fixed; assign only scalar fields matching that kind. Use toml_set_text/toml_set_fraction for owned text, and toml_insert/toml_push to attach it. Example: value, error := toml_new_value(*doc, .INTEGER); value.integer = 7;

Signature

toml_new_value :: (
    doc: *Toml_Document,
    kind: Toml_Kind
) -> (*Toml_Value, Toml_Error)

See also