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.
Trait Implementations§
impl Eq for Written
impl StructuralPartialEq for Written
Auto Trait Implementations§
impl Freeze for Written
impl RefUnwindSafe for Written
impl Send for Written
impl Sync for Written
impl Unpin for Written
impl UnsafeUnpin for Written
impl UnwindSafe for Written
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.