Skip to main content

Module data

Module data 

Source
Expand description

Yog Data text (the yog-data crate: JSON plus comments, trailing commas and unquoted keys) as serde_json values, for the readers here that only look things up.

Functions§

at
The value at keys of v, one map key after another.
from_json
v as Yog Data (plain values: no references or other typed strings).
read_object
A Yog Data file that’s one object, None if it isn’t.
runtime_ids
v with its references as the runtime writes ids: @item:x → x, @tag:item:x → #x (what yog-book’s renderer and the hosts read).
to_json
v as a serde_json value; typed values become their string forms.