Struct branded_graph::NodeRef
source · #[repr(transparent)]pub struct NodeRef<'id> { /* private fields */ }
Expand description
A reference to a node in the graph with lifetime 'id
.
It is a wrapper over a u32
, which is sufficient for any practical graph
size.
Implementations§
Trait Implementations§
source§impl<'id> Ord for NodeRef<'id>
impl<'id> Ord for NodeRef<'id>
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<'id> PartialEq<NodeRef<'id>> for NodeRef<'id>
impl<'id> PartialEq<NodeRef<'id>> for NodeRef<'id>
source§impl<'id> PartialOrd<NodeRef<'id>> for NodeRef<'id>
impl<'id> PartialOrd<NodeRef<'id>> for NodeRef<'id>
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<'id> Copy for NodeRef<'id>
impl<'id> Eq for NodeRef<'id>
impl<'id> StructuralEq for NodeRef<'id>
impl<'id> StructuralPartialEq for NodeRef<'id>
Auto Trait Implementations§
impl<'id> RefUnwindSafe for NodeRef<'id>
impl<'id> Send for NodeRef<'id>
impl<'id> Sync for NodeRef<'id>
impl<'id> Unpin for NodeRef<'id>
impl<'id> UnwindSafe for NodeRef<'id>
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