pub struct Node {
pub path: PathBuf,
pub title: Option<String>,
pub label: Option<String>,
pub kind: NodeKind,
pub children: Vec<Node>,
}Expand description
One node of the materialized spanning tree.
Fields§
§path: PathBufWorkspace-relative, normalized path — relative to Graph::root,
not fs-readable as-is. Join it onto the root with
Graph::fs_path before handing it to a crate::fs::ReadStorage
read; the raw form here is what makes a Node stable across a
workspace re-rooted to a different directory.
title: Option<String>The document’s title field, when present.
label: Option<String>The label the parent’s link carried ([label](path)), when any.
kind: NodeKindHow this node was resolved.
children: Vec<Node>Spanning children, in declaration order.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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