pub struct Node {
pub kind: SyntaxKind,
pub first: u32,
pub end: u32,
pub parent: u32,
pub subtree_end: u32,
}Expand description
One node: its kind, the tokens it covers (first..end, both significant at the edges unless empty), its parent,
and the index just past its last descendant.
Fields§
§kind: SyntaxKind§first: u32§end: u32§parent: u32§subtree_end: u32Trait Implementations§
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl Move 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