Struct tree_sitter::TreeCursor
source · pub struct TreeCursor<'a>(_, _);
Implementations
sourceimpl<'a> TreeCursor<'a>
impl<'a> TreeCursor<'a>
pub fn node(&self) -> Node<'a>
pub fn goto_first_child(&mut self) -> bool
pub fn goto_parent(&mut self) -> bool
pub fn goto_next_sibling(&mut self) -> bool
pub fn goto_first_child_for_index(&mut self, index: u32) -> Option<u32>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for TreeCursor<'a>
impl<'a> !Send for TreeCursor<'a>
impl<'a> !Sync for TreeCursor<'a>
impl<'a> Unpin for TreeCursor<'a>
impl<'a> UnwindSafe for TreeCursor<'a>
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