pub struct AstNode {
pub node_type: NodeType,
pub text: String,
pub children: Vec<AstNode>,
pub position: Option<Position>,
pub attributes: HashMap<String, String>,
pub attribute_keys: Vec<String>,
}Expand description
Abstract Syntax Tree node for SpeechMarkdown
Fields§
§node_type: NodeTypeType of the AST node
text: StringText content of the node
children: Vec<AstNode>Child nodes
position: Option<Position>Position in the source text (if available)
attributes: HashMap<String, String>Additional attributes (modifier values, etc.)
attribute_keys: Vec<String>Ordered attribute keys (preserves insertion order)
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 UnsafeUnpin 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