Struct daggy::EdgeIndex [] [src]

pub struct EdgeIndex<Ix = u32>(_);

Edge identifier.

Methods

impl<Ix> EdgeIndex<Ix> where 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> Debug for EdgeIndex<Ix> where Ix: IndexType

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.

impl<Ix> GraphIndex for EdgeIndex<Ix> where Ix: IndexType

fn index(&self) -> usize

fn is_node_index() -> bool

Derived Implementations

impl<Ix> Hash for EdgeIndex<Ix> where Ix: Hash

fn hash<__HIx>(&self, __arg_0: &mut __HIx) where __HIx: Hasher

impl<Ix> Ord for EdgeIndex<Ix> where Ix: Ord

fn cmp(&self, __arg_0: &EdgeIndex<Ix>) -> Ordering

impl<Ix> Eq for EdgeIndex<Ix> where Ix: Eq

impl<Ix> PartialOrd<EdgeIndex<Ix>> for EdgeIndex<Ix> where 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> PartialEq<EdgeIndex<Ix>> for EdgeIndex<Ix> where Ix: PartialEq<Ix>

fn eq(&self, __arg_0: &EdgeIndex<Ix>) -> bool

fn ne(&self, __arg_0: &EdgeIndex<Ix>) -> bool

impl<Ix> Clone for EdgeIndex<Ix> where 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> Copy for EdgeIndex<Ix> where Ix: Copy