Skip to main content

Module value

Module value 

Source
Expand description

Parameter values written as text, read and checked against their descriptors.

Enums§

ValueError
A parameter value that cannot be read, or does not fit its descriptor.
ValueKind
Kind of a parameter value, as ValueError::WrongKind reports it.

Functions§

check_value
Checks value against the type, bounds and options of kind.
format_value
Returns value as text that parse_value reads back unchanged.
parse_overrides
Splits each --set ID=VALUE string into an (id, value) pair at its first =.
parse_value
Reads raw as a value of kind, and checks it with check_value.
resolve_params
Returns every descriptor’s default value, with overrides applied in order by id.