pub struct CsrNodeId<Index>(pub Index);Expand description
Local node ID for CsrGraph.
Values are dense handles in 0..node_count for one validated CSR view. They
are topology-local IDs and are not stable across rebuilding or compaction
unless a higher layer defines that contract.
§Performance
Copying, comparing, ordering, hashing, and debug-formatting are O(1) when
the underlying index type provides those operations in O(1).
Tuple Fields§
§0: IndexTrait Implementations§
Source§impl<Index: Ord> Ord for CsrNodeId<Index>
impl<Index: Ord> Ord for CsrNodeId<Index>
1.21.0 (const: unstable) · 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<Index: PartialEq> PartialEq for CsrNodeId<Index>
impl<Index: PartialEq> PartialEq for CsrNodeId<Index>
Source§impl<Index: PartialOrd> PartialOrd for CsrNodeId<Index>
impl<Index: PartialOrd> PartialOrd for CsrNodeId<Index>
impl<Index: Copy> Copy for CsrNodeId<Index>
impl<Index: Eq> Eq for CsrNodeId<Index>
impl<Index> StructuralPartialEq for CsrNodeId<Index>
Auto Trait Implementations§
impl<Index> Freeze for CsrNodeId<Index>where
Index: Freeze,
impl<Index> RefUnwindSafe for CsrNodeId<Index>where
Index: RefUnwindSafe,
impl<Index> Send for CsrNodeId<Index>where
Index: Send,
impl<Index> Sync for CsrNodeId<Index>where
Index: Sync,
impl<Index> Unpin for CsrNodeId<Index>where
Index: Unpin,
impl<Index> UnsafeUnpin for CsrNodeId<Index>where
Index: UnsafeUnpin,
impl<Index> UnwindSafe for CsrNodeId<Index>where
Index: UnwindSafe,
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