Struct tree_sitter_graph::graph::SyntaxNodeRef
source · [−]pub struct SyntaxNodeRef { /* private fields */ }
Expand description
A reference to a syntax node in a graph
Trait Implementations
sourceimpl Clone for SyntaxNodeRef
impl Clone for SyntaxNodeRef
sourcefn clone(&self) -> SyntaxNodeRef
fn clone(&self) -> SyntaxNodeRef
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SyntaxNodeRef
impl Debug for SyntaxNodeRef
sourceimpl Display for SyntaxNodeRef
impl Display for SyntaxNodeRef
sourceimpl From<SyntaxNodeRef> for Value
impl From<SyntaxNodeRef> for Value
sourcefn from(value: SyntaxNodeRef) -> Value
fn from(value: SyntaxNodeRef) -> Value
Performs the conversion.
sourceimpl Hash for SyntaxNodeRef
impl Hash for SyntaxNodeRef
sourceimpl<'tree> Index<SyntaxNodeRef> for Graph<'tree>
impl<'tree> Index<SyntaxNodeRef> for Graph<'tree>
sourceimpl Ord for SyntaxNodeRef
impl Ord for SyntaxNodeRef
sourceimpl PartialEq<SyntaxNodeRef> for SyntaxNodeRef
impl PartialEq<SyntaxNodeRef> for SyntaxNodeRef
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SyntaxNodeRef) -> bool
fn ne(&self, other: &SyntaxNodeRef) -> bool
This method tests for !=
.
sourceimpl PartialOrd<SyntaxNodeRef> for SyntaxNodeRef
impl PartialOrd<SyntaxNodeRef> for SyntaxNodeRef
sourcefn partial_cmp(&self, other: &SyntaxNodeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &SyntaxNodeRef) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
impl Copy for SyntaxNodeRef
impl Eq for SyntaxNodeRef
impl StructuralEq for SyntaxNodeRef
impl StructuralPartialEq for SyntaxNodeRef
Auto Trait Implementations
impl RefUnwindSafe for SyntaxNodeRef
impl Send for SyntaxNodeRef
impl Sync for SyntaxNodeRef
impl Unpin for SyntaxNodeRef
impl UnwindSafe for SyntaxNodeRef
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more