pub type Variables = BTreeMap<String, u32>;Expand description
The integer bound each page-size variable a document names is given, keyed by
variable name without the leading $.
A variable a document declares but no first:/last: argument references
need not appear. A variable a first:/last: does reference must, or
node_count and point_cost alike return
NodeCountError::UnboundVariable — a declared default value is not
consulted.
A u32 rather than a validated page-size newtype: this alias is a contract
with the repositories that call this crate, restated verbatim in their own
builds, so it is not ours to narrow. The 1..=100 range GitHub requires is
enforced where the value is used, and a binding outside it comes back as
NodeCountError::PageSizeOutOfRange rather than being silently counted.
Aliased Type§
pub struct Variables { /* private fields */ }