pub struct TreeSitterNode<'tree, 'source> { /* private fields */ }Expand description
A borrowed Tree-sitter node paired with the source bytes it spans.
Implementations§
Trait Implementations§
Source§impl<'tree, 'source> Clone for TreeSitterNode<'tree, 'source>
impl<'tree, 'source> Clone for TreeSitterNode<'tree, 'source>
Source§impl ExternalCstNode for TreeSitterNode<'_, '_>
impl ExternalCstNode for TreeSitterNode<'_, '_>
Source§type Children<'syntax> = IntoIter<ExternalCstChild<TreeSitterNode<'_, '_>>>
where
Self: 'syntax
type Children<'syntax> = IntoIter<ExternalCstChild<TreeSitterNode<'_, '_>>> where Self: 'syntax
The iterator returned by
Self::children.Source§fn identity(&self) -> CSTNodeClassLabel<'_>
fn identity(&self) -> CSTNodeClassLabel<'_>
Returns the node kind used by migration matching.
Auto Trait Implementations§
impl<'tree, 'source> Freeze for TreeSitterNode<'tree, 'source>
impl<'tree, 'source> RefUnwindSafe for TreeSitterNode<'tree, 'source>
impl<'tree, 'source> Send for TreeSitterNode<'tree, 'source>
impl<'tree, 'source> Sync for TreeSitterNode<'tree, 'source>
impl<'tree, 'source> Unpin for TreeSitterNode<'tree, 'source>
impl<'tree, 'source> UnsafeUnpin for TreeSitterNode<'tree, 'source>
impl<'tree, 'source> UnwindSafe for TreeSitterNode<'tree, 'source>
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