pub struct Row {
pub depth: usize,
pub label: String,
pub vkind: VKind,
pub preview: String,
pub expanded: bool,
pub path: Vec<Seg>,
}Expand description
One visible line of the tree.
Fields§
§depth: usizeNesting depth (top-level entries are depth 0).
label: StringThe mapping key, or [i] for a sequence item.
vkind: VKind§preview: StringA one-line rendering of the value (the scalar text, or {n} / [n]).
expanded: boolMeaningful only for containers: whether it is currently expanded.
path: Vec<Seg>The fig path to this node from the document root.
Implementations§
Source§impl Row
impl Row
pub fn is_container(&self) -> bool
Sourcepub fn can_rename(&self) -> bool
pub fn can_rename(&self) -> bool
Whether this row’s label can be changed — true for a mapping entry,
false for a sequence item, whose label is its index. The peer of
PageItem::can_rename, so the two
projections answer it the same way.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Row
impl RefUnwindSafe for Row
impl Send for Row
impl Sync for Row
impl Unpin for Row
impl UnsafeUnpin for Row
impl UnwindSafe for Row
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
Mutably borrows from an owned value. Read more