[][src]Struct tree_sitter::Node

pub struct Node<'a>(_, _);

Methods

impl<'tree> Node<'tree>[src]

pub fn kind_id(&self) -> u16[src]

pub fn kind(&self) -> &'static str[src]

pub fn is_named(&self) -> bool[src]

pub fn has_changes(&self) -> bool[src]

pub fn has_error(&self) -> bool[src]

pub fn is_error(&self) -> bool[src]

pub fn is_missing(&self) -> bool[src]

pub fn start_byte(&self) -> usize[src]

pub fn end_byte(&self) -> usize[src]

pub fn range(&self) -> Range[src]

pub fn start_position(&self) -> Point[src]

pub fn end_position(&self) -> Point[src]

pub fn child(&self, i: usize) -> Option<Self>[src]

pub fn child_count(&self) -> usize[src]

pub fn children<'a>(
    &'a self
) -> impl Iterator<Item = Node<'tree>> + 'a
[src]

pub fn named_child<'a>(&'a self, i: usize) -> Option<Self>[src]

pub fn named_child_count(&self) -> usize[src]

pub fn parent(&self) -> Option<Self>[src]

pub fn next_sibling(&self) -> Option<Self>[src]

pub fn prev_sibling(&self) -> Option<Self>[src]

pub fn next_named_sibling(&self) -> Option<Self>[src]

pub fn prev_named_sibling(&self) -> Option<Self>[src]

pub fn descendant_for_byte_range(
    &self,
    start: usize,
    end: usize
) -> Option<Self>
[src]

pub fn named_descendant_for_byte_range(
    &self,
    start: usize,
    end: usize
) -> Option<Self>
[src]

pub fn descendant_for_point_range(
    &self,
    start: Point,
    end: Point
) -> Option<Self>
[src]

pub fn named_descendant_for_point_range(
    &self,
    start: Point,
    end: Point
) -> Option<Self>
[src]

pub fn to_sexp(&self) -> String[src]

pub fn utf8_text<'a>(&self, source: &'a [u8]) -> Result<&'a str, Utf8Error>[src]

pub fn utf16_text<'a>(&self, source: &'a [u16]) -> &'a [u16][src]

pub fn walk(&self) -> TreeCursor<'tree>[src]

pub fn edit(&mut self, edit: &InputEdit)[src]

Trait Implementations

impl<'a> Clone for Node<'a>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'a> Copy for Node<'a>[src]

impl<'a> PartialEq<Node<'a>> for Node<'a>[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl<'a> Debug for Node<'a>[src]

Auto Trait Implementations

impl<'a> !Send for Node<'a>

impl<'a> !Sync for Node<'a>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]