pub struct Node {
pub title: String,
pub tags: Vec<String>,
pub headers: IndexMap<String, String>,
pub when: Option<Arc<Expr>>,
pub body: Arc<Vec<Stmt>>,
}Expand description
A complete parsed node from a .bub script.
Fields§
§title: StringThe node title (must be unique within the program, or share a when: clause for groups).
Tags declared in the tags: header.
headers: IndexMap<String, String>All other header key-value pairs, preserved verbatim (minus title / tags / when).
when: Option<Arc<Expr>>Optional when: condition for node-group selection (parsed at compile time).
body: Arc<Vec<Stmt>>The statements making up the node body (shared Arc so pickers can clone cheaply).
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