pub struct Written {
pub path: Vec<usize>,
pub kind: String,
pub name: Option<String>,
pub argument: Option<String>,
pub line: String,
}Expand description
One node of a form file, as the file writes it.
Form::written is where these come from, and says why they are not
Placed.
Fields§
§path: Vec<usize>Child indices from the form node down to this one. Empty for the form.
kind: StringThe node’s name in the file — label, panel, form. Whatever the file
says, which is not necessarily a widget this toolkit has.
name: Option<String>What name= gave it, if it gave one.
argument: Option<String>Its positional argument — the "Hello" in label "Hello" — if it has
one. The other half of saying which node this is, to somebody who has
the file open and never named it.
line: StringThe node’s own entries, spelled canonically: its kind, then every argument and property in the order the file writes them, and nothing else. No children, no comment above it, and none of the spacing between any of it — so a file somebody realigned by hand does not read as though every node in it changed. Every string is quoted, whether the file bothered to or not, for the same reason.