Struct tree_sitter_facade::Node [−][src]
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]
&self,
cursor: &'a mut TreeCursor<'tree>
) -> impl ExactSizeIterator<Item = Node<'tree>> + 'a
pub fn children_by_field_id<'a>(
&self,
field_id: u16,
cursor: &'a mut TreeCursor<'tree>
) -> impl Iterator<Item = Node<'tree>> + 'a
[src]
&self,
field_id: u16,
cursor: &'a mut TreeCursor<'tree>
) -> impl Iterator<Item = Node<'tree>> + 'a
pub fn children_by_field_name<'a>(
&self,
field_name: &str,
cursor: &'a mut TreeCursor<'tree>
) -> impl Iterator<Item = Node<'tree>> + 'a
[src]
&self,
field_name: &str,
cursor: &'a mut TreeCursor<'tree>
) -> impl Iterator<Item = Node<'tree>> + 'a
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]
&self,
start: Point,
end: Point
) -> Option<Self>
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]
&self,
cursor: &'a mut TreeCursor<'tree>
) -> impl ExactSizeIterator<Item = Node<'tree>> + 'a
pub fn named_descendant_for_byte_range(
&self,
start: u32,
end: u32
) -> Option<Self>
[src]
&self,
start: u32,
end: u32
) -> 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 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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,