pub struct Tree {
pub scopes: Vec<Scope>,
pub sections: Vec<Section>,
pub wizards: Vec<Wizard>,
pub quick: Vec<String>,
/* private fields */
}Expand description
The resolved tree: every manifest merged, scopes and sections in order.
Fields§
§scopes: Vec<Scope>§sections: Vec<Section>§wizards: Vec<Wizard>§quick: Vec<String>The settings marked quick, each once, in their manifests’ order.
Implementations§
Source§impl Tree
impl Tree
Sourcepub fn merge(&mut self, m: Manifest)
pub fn merge(&mut self, m: Manifest)
Merges a manifest: its scopes after the ones there, its sections appended (a section at a path already there adds its groups to it), then every section placed again (docs/design/admin-forms.md, “Ordering”).
Sourcepub fn order_diagnostics(&self) -> &[Diagnostic]
pub fn order_diagnostics(&self) -> &[Diagnostic]
What the placement of the sections found ambiguous, as of the
last merge: admin-order-tie (two manifests give one scope’s
sections the same explicit order) and admin-unknown-anchor
(an after or before naming no section of the scope, or a
cycle). Read them once every manifest is merged: an anchor to a
later manifest’s section is unknown until then.
Sourcepub fn shown_scopes(&self) -> Vec<&Scope>
pub fn shown_scopes(&self) -> Vec<&Scope>
Scopes with at least one section.
Sourcepub fn sections_of(&self, scope: &str) -> Vec<&Section>
pub fn sections_of(&self, scope: &str) -> Vec<&Section>
A scope’s sections, in order.