Struct tree_sitter::Tree
source · pub struct Tree(_);
Implementations
sourceimpl Tree
impl Tree
pub fn root_node(&self) -> Node<'_>
pub fn edit(&mut self, edit: &InputEdit)
pub fn walk(&self) -> TreeCursor<'_>
pub fn walk_with_properties<'a, P>(
&'a self,
property_sheet: &'a PropertySheet<P>,
source: &'a str
) -> TreePropertyCursor<'a, P>
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more