pub struct Built { /* private fields */ }Expand description
What a form built, so an application can find what it made.
Implementations§
Source§impl Built
impl Built
Sourcepub fn node(&self, name: &str) -> Option<NodeId>
pub fn node(&self, name: &str) -> Option<NodeId>
See Form::build for one of these being made and read.
The node a form gave this name, if it gave one that name.
Sourcepub fn names(&self) -> impl Iterator<Item = (&str, NodeId)>
pub fn names(&self) -> impl Iterator<Item = (&str, NodeId)>
See Form::build for one of these being made and read.
Every name the form gave a node, in no particular order.
Sourcepub fn pages(&self) -> &[Page]
pub fn pages(&self) -> &[Page]
Every tab page the form built, in file order.
Empty for a form whose tabs are bare labels, which is every form written
before a tab could hold anything. See Page.
Sourcepub fn placed(&self) -> &[Placed]
pub fn placed(&self) -> &[Placed]
Every node the form built, in file order.
See Form::build for one of these being made and read.
Includes the ones with no name: a designer selects what a person clicked
on, and most of what a person clicks on was never named.
Sourcepub fn at(&self, path: &[usize]) -> Option<&Placed>
pub fn at(&self, path: &[usize]) -> Option<&Placed>
See Form::build for one of these being made and read.
The node at a path, if the form put one there.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
See Form::build for one of these being made and read.
How many nodes were named.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
See Form::build for one of these being made and read.
Whether the form named nothing.