Struct daggy::EdgeIndex
[−]
[src]
pub struct EdgeIndex<Ix = u32>(_);
Edge identifier.
Methods
impl<Ix> EdgeIndex<Ix> where
Ix: IndexType,
[src]
Ix: IndexType,
fn new(x: usize) -> EdgeIndex<Ix>
fn index(self) -> usize
fn end() -> EdgeIndex<Ix>
An invalid EdgeIndex
used to denote absence of an edge, for example
to end an adjacency list.
Trait Implementations
impl<Ix> Clone for EdgeIndex<Ix> where
Ix: Clone,
[src]
Ix: Clone,
fn clone(&self) -> EdgeIndex<Ix>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<Ix> GraphIndex for EdgeIndex<Ix> where
Ix: IndexType,
[src]
Ix: IndexType,
fn index(&self) -> usize
fn is_node_index() -> bool
impl<Ix> PartialOrd<EdgeIndex<Ix>> for EdgeIndex<Ix> where
Ix: PartialOrd<Ix>,
[src]
Ix: PartialOrd<Ix>,
fn partial_cmp(&self, __arg_0: &EdgeIndex<Ix>) -> Option<Ordering>
fn lt(&self, __arg_0: &EdgeIndex<Ix>) -> bool
fn le(&self, __arg_0: &EdgeIndex<Ix>) -> bool
fn gt(&self, __arg_0: &EdgeIndex<Ix>) -> bool
fn ge(&self, __arg_0: &EdgeIndex<Ix>) -> bool
impl<Ix> Copy for EdgeIndex<Ix> where
Ix: Copy,
[src]
Ix: Copy,
impl<Ix> Ord for EdgeIndex<Ix> where
Ix: Ord,
[src]
Ix: Ord,
impl<Ix> PartialEq<EdgeIndex<Ix>> for EdgeIndex<Ix> where
Ix: PartialEq<Ix>,
[src]
Ix: PartialEq<Ix>,
impl<Ix> Eq for EdgeIndex<Ix> where
Ix: Eq,
[src]
Ix: Eq,
impl<Ix> Hash for EdgeIndex<Ix> where
Ix: Hash,
[src]
Ix: Hash,
impl<Ix> Debug for EdgeIndex<Ix> where
Ix: IndexType,
[src]
Ix: IndexType,