pub struct AstNode {
pub label: String,
pub node_type: String,
pub children: Vec<AstNode>,
}Expand description
AST node for tree visualization in the UI.
Fields§
§label: StringDisplay label for this node (e.g., “∀x”, “Run(x)”).
node_type: StringNode type for styling (e.g., “quantifier”, “predicate”, “connective”).
children: Vec<AstNode>Child nodes in the AST.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AstNode
impl<'de> Deserialize<'de> for AstNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for AstNode
Auto Trait Implementations§
impl Freeze for AstNode
impl RefUnwindSafe for AstNode
impl Send for AstNode
impl Sync for AstNode
impl Unpin for AstNode
impl UnwindSafe for AstNode
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