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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl 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
Converts to this type from the input type.
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 moresourceimpl Ord for GraphNodeRef
impl Ord for GraphNodeRef
sourcefn cmp(&self, other: &GraphNodeRef) -> Ordering
fn cmp(&self, other: &GraphNodeRef) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<GraphNodeRef> for GraphNodeRef
impl PartialEq<GraphNodeRef> for GraphNodeRef
sourcefn eq(&self, other: &GraphNodeRef) -> bool
fn eq(&self, other: &GraphNodeRef) -> bool
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>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more