pub struct LocalId<A, Width> { /* private fields */ }Expand description
A dense local handle: an axis-branded index value.
Every layout crate aliases this for its node/edge/vertex/hyperedge/incidence
identities so a built graph and its borrowed snapshot view yield the same
handle type. The Axis brand is a zero-sized PhantomData<fn() -> A> so the
handle stays Copy, Send, and Sync regardless of the marker, and
satisfies the TopologyId blanket bound when Width does.
§Performance
Copy, compare, order, hash, and debug-format are O(1).
Implementations§
Trait Implementations§
impl<A, Width: Copy> Copy for LocalId<A, Width>
impl<A, Width: Eq> Eq for LocalId<A, Width>
Source§impl<A, Width: Ord> Ord for LocalId<A, Width>
impl<A, Width: Ord> Ord for LocalId<A, Width>
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<A, Width: PartialOrd> PartialOrd for LocalId<A, Width>
impl<A, Width: PartialOrd> PartialOrd for LocalId<A, Width>
Auto Trait Implementations§
impl<A, Width> Freeze for LocalId<A, Width>where
Width: Freeze,
impl<A, Width> RefUnwindSafe for LocalId<A, Width>where
Width: RefUnwindSafe,
impl<A, Width> Send for LocalId<A, Width>where
Width: Send,
impl<A, Width> Sync for LocalId<A, Width>where
Width: Sync,
impl<A, Width> Unpin for LocalId<A, Width>where
Width: Unpin,
impl<A, Width> UnsafeUnpin for LocalId<A, Width>where
Width: UnsafeUnpin,
impl<A, Width> UnwindSafe for LocalId<A, Width>where
Width: 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