[−][src]Struct tree_sitter::Node
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]
&'a self
) -> impl Iterator<Item = Node<'tree>> + 'a
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]
&self,
start: usize,
end: usize
) -> Option<Self>
pub fn named_descendant_for_byte_range(
&self,
start: usize,
end: usize
) -> Option<Self>
[src]
&self,
start: usize,
end: usize
) -> Option<Self>
pub fn descendant_for_point_range(
&self,
start: Point,
end: Point
) -> Option<Self>
[src]
&self,
start: Point,
end: Point
) -> Option<Self>
pub fn named_descendant_for_point_range(
&self,
start: Point,
end: Point
) -> Option<Self>
[src]
&self,
start: Point,
end: Point
) -> Option<Self>
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(&self) -> 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]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<'a> Debug for Node<'a>
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,