Struct tree_sitter_graph::graph::SyntaxNodeRef
source · pub struct SyntaxNodeRef { /* private fields */ }
Expand description
A reference to a syntax node in a graph
Implementations§
Trait Implementations§
source§impl Clone for SyntaxNodeRef
impl Clone for SyntaxNodeRef
source§fn clone(&self) -> SyntaxNodeRef
fn clone(&self) -> SyntaxNodeRef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SyntaxNodeRef
impl Debug for SyntaxNodeRef
source§impl Display for SyntaxNodeRef
impl Display for SyntaxNodeRef
source§impl From<SyntaxNodeRef> for Value
impl From<SyntaxNodeRef> for Value
source§fn from(value: SyntaxNodeRef) -> Value
fn from(value: SyntaxNodeRef) -> Value
Converts to this type from the input type.
source§impl Hash for SyntaxNodeRef
impl Hash for SyntaxNodeRef
source§impl<'tree> Index<SyntaxNodeRef> for Graph<'tree>
impl<'tree> Index<SyntaxNodeRef> for Graph<'tree>
source§impl Ord for SyntaxNodeRef
impl Ord for SyntaxNodeRef
source§fn cmp(&self, other: &SyntaxNodeRef) -> Ordering
fn cmp(&self, other: &SyntaxNodeRef) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SyntaxNodeRef
impl PartialEq for SyntaxNodeRef
source§fn eq(&self, other: &SyntaxNodeRef) -> bool
fn eq(&self, other: &SyntaxNodeRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SyntaxNodeRef
impl PartialOrd for SyntaxNodeRef
source§fn partial_cmp(&self, other: &SyntaxNodeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &SyntaxNodeRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SyntaxNodeRef
impl Eq for SyntaxNodeRef
impl StructuralPartialEq for SyntaxNodeRef
Auto Trait Implementations§
impl Freeze for SyntaxNodeRef
impl RefUnwindSafe for SyntaxNodeRef
impl Send for SyntaxNodeRef
impl Sync for SyntaxNodeRef
impl Unpin for SyntaxNodeRef
impl UnwindSafe for SyntaxNodeRef
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more