Skip to main content

Module ron

Module ron 

Source
Expand description

Reading RON assets with file:line:col errors. As a format (ADR-0007), Ron reads any kind that serde reads: a game’s own data tables.

Structs§

Ron
A RON file of a kind serde reads (ron, .ron, unless Ron::named says), read as parse_ron says: a game’s data table, say, whose own checks run after.

Functions§

load_ron
Loads and deserializes the RON file at path in bundle.
parse_ron
Deserializes RON source; errors are attributed to file (a human-facing path) with RON’s 1-based line and column.
parse_ron_implicit_some
Like parse_ron, with RON’s implicit_some on: an optional field is written as its value, not in Some(…).
parse_ron_seed
Like parse_ron, reading with seed: for a value whose shape is known only at run time.