pub struct AstNodeData {
pub kind: String,
pub children: Vec<AstNodeData>,
pub text_length: usize,
pub is_leaf: bool,
}Expand description
AST node data structure for parser testing.
Represents a node in the abstract kind tree with its kind, children, text length, and leaf status used for testing parser output.
Fields§
§kind: String§children: Vec<AstNodeData>§text_length: usize§is_leaf: boolTrait Implementations§
Source§impl Debug for AstNodeData
impl Debug for AstNodeData
Source§impl<'de> Deserialize<'de> for AstNodeData
impl<'de> Deserialize<'de> for AstNodeData
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
Source§impl PartialEq for AstNodeData
impl PartialEq for AstNodeData
Source§impl Serialize for AstNodeData
impl Serialize for AstNodeData
impl StructuralPartialEq for AstNodeData
Auto Trait Implementations§
impl Freeze for AstNodeData
impl RefUnwindSafe for AstNodeData
impl Send for AstNodeData
impl Sync for AstNodeData
impl Unpin for AstNodeData
impl UnwindSafe for AstNodeData
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