pub struct CsrEdgeId<Index>(pub Index);Expand description
Local edge ID for CsrGraph.
Values are dense handles into the flat CSR target array. They are topology-local IDs and are not stable across sorting, 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 CsrEdgeId<Index>
impl<Index: Ord> Ord for CsrEdgeId<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 CsrEdgeId<Index>
impl<Index: PartialEq> PartialEq for CsrEdgeId<Index>
Source§impl<Index: PartialOrd> PartialOrd for CsrEdgeId<Index>
impl<Index: PartialOrd> PartialOrd for CsrEdgeId<Index>
impl<Index: Copy> Copy for CsrEdgeId<Index>
impl<Index: Eq> Eq for CsrEdgeId<Index>
impl<Index> StructuralPartialEq for CsrEdgeId<Index>
Auto Trait Implementations§
impl<Index> Freeze for CsrEdgeId<Index>where
Index: Freeze,
impl<Index> RefUnwindSafe for CsrEdgeId<Index>where
Index: RefUnwindSafe,
impl<Index> Send for CsrEdgeId<Index>where
Index: Send,
impl<Index> Sync for CsrEdgeId<Index>where
Index: Sync,
impl<Index> Unpin for CsrEdgeId<Index>where
Index: Unpin,
impl<Index> UnsafeUnpin for CsrEdgeId<Index>where
Index: UnsafeUnpin,
impl<Index> UnwindSafe for CsrEdgeId<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