Struct tree_sitter_facade::Node[][src]

pub struct Node<'tree> { /* fields omitted */ }

Implementations

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

pub fn byte_range(&self) -> Range<u32>[src]

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

pub fn child_by_field_id(&self, field_id: u16) -> Option<Self>[src]

pub fn child_by_field_name(&self, field_name: impl AsRef<[u8]>) -> Option<Self>[src]

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

pub fn children<'a>(
    &self,
    cursor: &'a mut TreeCursor<'tree>
) -> impl ExactSizeIterator<Item = Node<'tree>> + 'a
[src]

pub fn children_by_field_id<'a>(
    &self,
    field_id: u16,
    cursor: &'a mut TreeCursor<'tree>
) -> impl Iterator<Item = Node<'tree>> + 'a
[src]

pub fn children_by_field_name<'a>(
    &self,
    field_name: &str,
    cursor: &'a mut TreeCursor<'tree>
) -> impl Iterator<Item = Node<'tree>> + 'a
[src]

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

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

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

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

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

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

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

pub fn id(&self) -> u32[src]

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

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

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

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

pub fn kind(&self) -> Cow<'_, str>[src]

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

pub fn language(&self) -> Language[src]

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

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

pub fn named_children<'a>(
    &self,
    cursor: &'a mut TreeCursor<'tree>
) -> impl ExactSizeIterator<Item = Node<'tree>> + 'a
[src]

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

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

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

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

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

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

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

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

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

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

pub fn to_sexp(&self) -> Cow<'_, str>[src]

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

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

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

Trait Implementations

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

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

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

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

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

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

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

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

Auto Trait Implementations

impl<'tree> RefUnwindSafe for Node<'tree>

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

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

impl<'tree> Unpin for Node<'tree>

impl<'tree> UnwindSafe for Node<'tree>

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.