pub enum GraphIndex<Ix>where
Ix: IndexType,{
Cell(CellIndex<Ix>),
Edge(EdgeIndex<Ix>),
Node(NodeIndex<Ix>),
None,
}Expand description
A wrapper enum to hold all
Variants§
Cell(CellIndex<Ix>)
A super::Cell refference;
Edge(EdgeIndex<Ix>)
A super::Edge refference;
Node(NodeIndex<Ix>)
A super::Node refference;
None
None type for refference.
Trait Implementations§
Source§impl<Ix> Clone for GraphIndex<Ix>
impl<Ix> Clone for GraphIndex<Ix>
Source§fn clone(&self) -> GraphIndex<Ix>
fn clone(&self) -> GraphIndex<Ix>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Ix> Debug for GraphIndex<Ix>
impl<Ix> Debug for GraphIndex<Ix>
Source§impl<Ix> Display for GraphIndex<Ix>where
Ix: IndexType,
impl<Ix> Display for GraphIndex<Ix>where
Ix: IndexType,
Source§impl<Ix> Hash for GraphIndex<Ix>
impl<Ix> Hash for GraphIndex<Ix>
Source§impl<Ix> PartialEq for GraphIndex<Ix>
impl<Ix> PartialEq for GraphIndex<Ix>
impl<Ix> Copy for GraphIndex<Ix>
impl<Ix> Eq for GraphIndex<Ix>
impl<Ix> StructuralPartialEq for GraphIndex<Ix>where
Ix: IndexType,
Auto Trait Implementations§
impl<Ix> Freeze for GraphIndex<Ix>where
Ix: Freeze,
impl<Ix> RefUnwindSafe for GraphIndex<Ix>where
Ix: RefUnwindSafe,
impl<Ix> Send for GraphIndex<Ix>where
Ix: Send,
impl<Ix> Sync for GraphIndex<Ix>where
Ix: Sync,
impl<Ix> Unpin for GraphIndex<Ix>where
Ix: Unpin,
impl<Ix> UnwindSafe for GraphIndex<Ix>where
Ix: 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