Skip to main content

Module settings

Module settings 

Source

Structs§

Desc
a key of a schema (Key::d)
Key
a typed key: its description (d) and the Rust type of its value
Schema
the keys of a settings file, its format version, the page’s section titles and the migration of older files
Settings
typed settings over a file (see the module header)

Enums§

Kind
what a key holds, with its default and limits
Val
a value of a key

Constants§

KF_HIDDEN
Desc::flags: not on the settings page
KF_RESTART
Desc::flags: takes effect after a restart (the page says so)

Traits§

Value
the Rust types a key can have: bool, i64, f64, String, usize (choice), u32 (colour)

Functions§

rename
for migrations: move a value from one name to another (“section.key”); false: not there
split
“section.key” -> (section, key); no ‘.’: (“”, name)