Struct tree_sitter_graph::graph::GraphNodeRef
source · [−]pub struct GraphNodeRef(_);
Expand description
A reference to a graph node
Implementations
sourceimpl GraphNodeRef
impl GraphNodeRef
Trait Implementations
sourceimpl Clone for GraphNodeRef
impl Clone for GraphNodeRef
sourcefn clone(&self) -> GraphNodeRef
fn clone(&self) -> GraphNodeRef
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 GraphNodeRef
impl Debug for GraphNodeRef
sourceimpl Display for GraphNodeRef
impl Display for GraphNodeRef
sourceimpl From<GraphNodeRef> for Value
impl From<GraphNodeRef> for Value
sourcefn from(value: GraphNodeRef) -> Value
fn from(value: GraphNodeRef) -> Value
Performs the conversion.
sourceimpl Hash for GraphNodeRef
impl Hash for GraphNodeRef
sourceimpl Index<GraphNodeRef> for Graph<'_>
impl Index<GraphNodeRef> for Graph<'_>
sourceimpl<'tree> IndexMut<GraphNodeRef> for Graph<'_>
impl<'tree> IndexMut<GraphNodeRef> for Graph<'_>
sourcefn index_mut(&mut self, index: GraphNodeRef) -> &mut GraphNode
fn index_mut(&mut self, index: GraphNodeRef) -> &mut GraphNode
Performs the mutable indexing (container[index]
) operation. Read more
sourceimpl Ord for GraphNodeRef
impl Ord for GraphNodeRef
sourceimpl PartialEq<GraphNodeRef> for GraphNodeRef
impl PartialEq<GraphNodeRef> for GraphNodeRef
sourcefn eq(&self, other: &GraphNodeRef) -> bool
fn eq(&self, other: &GraphNodeRef) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GraphNodeRef) -> bool
fn ne(&self, other: &GraphNodeRef) -> bool
This method tests for !=
.
sourceimpl PartialOrd<GraphNodeRef> for GraphNodeRef
impl PartialOrd<GraphNodeRef> for GraphNodeRef
sourcefn partial_cmp(&self, other: &GraphNodeRef) -> Option<Ordering>
fn partial_cmp(&self, other: &GraphNodeRef) -> 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 GraphNodeRef
impl Eq for GraphNodeRef
impl StructuralEq for GraphNodeRef
impl StructuralPartialEq for GraphNodeRef
Auto Trait Implementations
impl RefUnwindSafe for GraphNodeRef
impl Send for GraphNodeRef
impl Sync for GraphNodeRef
impl Unpin for GraphNodeRef
impl UnwindSafe for GraphNodeRef
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