Struct tree_sitter_facade::TreeCursor
source · [−]pub struct TreeCursor<'a> { /* private fields */ }
Implementations
sourceimpl<'a> TreeCursor<'a>
impl<'a> TreeCursor<'a>
pub fn field_id(&self) -> Option<u16>
pub fn field_name(&self) -> Option<Cow<'_, str>>
pub fn goto_first_child(&mut self) -> bool
pub fn goto_first_child_for_byte(&mut self, index: u32) -> Option<u32>
pub fn goto_next_sibling(&mut self) -> bool
pub fn goto_parent(&mut self) -> bool
pub fn node(&self) -> Node<'a>
pub fn reset(&mut self, node: Node<'a>)
Trait Implementations
sourceimpl<'a> Clone for TreeCursor<'a>
impl<'a> Clone for TreeCursor<'a>
sourcefn clone(&self) -> TreeCursor<'a>
fn clone(&self) -> TreeCursor<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> From<TreeCursor<'a>> for TreeCursor<'a>
impl<'a> From<TreeCursor<'a>> for TreeCursor<'a>
impl<'a> RefUnwindSafe for TreeCursor<'a>
impl<'a> Unpin for TreeCursor<'a>
impl<'a> UnwindSafe for TreeCursor<'a>
Auto Trait Implementations
impl<'a> !Send for TreeCursor<'a>
impl<'a> !Sync for TreeCursor<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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