pub struct GreenNode {
pub kind: SyntaxKind,
pub width: usize,
pub children: Vec<GreenNode>,
pub text: Option<String>,
}Expand description
A green node: an immutable, position-independent syntax tree node.
Fields§
§kind: SyntaxKind§width: usize§children: Vec<GreenNode>§text: Option<String>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GreenNode
impl RefUnwindSafe for GreenNode
impl Send for GreenNode
impl Sync for GreenNode
impl Unpin for GreenNode
impl UnsafeUnpin for GreenNode
impl UnwindSafe for GreenNode
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