[][src]Struct daggy::EdgeIndex

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

Edge identifier.

Implementations

impl<Ix> EdgeIndex<Ix> where
    Ix: IndexType
[src]

pub fn new(x: usize) -> EdgeIndex<Ix>[src]

pub fn index(self) -> usize[src]

pub fn end() -> EdgeIndex<Ix>[src]

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]

impl<Ix> Copy for EdgeIndex<Ix> where
    Ix: Copy
[src]

impl<Ix> Debug for EdgeIndex<Ix> where
    Ix: Debug
[src]

impl<Ix> Default for EdgeIndex<Ix> where
    Ix: Default
[src]

impl<Ix> Eq for EdgeIndex<Ix> where
    Ix: Eq
[src]

impl<Ix> GraphIndex for EdgeIndex<Ix> where
    Ix: IndexType
[src]

impl<Ix> Hash for EdgeIndex<Ix> where
    Ix: Hash
[src]

impl<N, E, Ix> Index<EdgeIndex<Ix>> for Dag<N, E, Ix> where
    Ix: IndexType
[src]

type Output = E

The returned type after indexing.

impl<N, E, Ix> IndexMut<EdgeIndex<Ix>> for Dag<N, E, Ix> where
    Ix: IndexType
[src]

impl<Ix> Ord for EdgeIndex<Ix> where
    Ix: Ord
[src]

impl<Ix> PartialEq<EdgeIndex<Ix>> for EdgeIndex<Ix> where
    Ix: PartialEq<Ix>, 
[src]

impl<Ix> PartialOrd<EdgeIndex<Ix>> for EdgeIndex<Ix> where
    Ix: PartialOrd<Ix>, 
[src]

impl<Ix> StructuralEq for EdgeIndex<Ix>[src]

impl<Ix> StructuralPartialEq for EdgeIndex<Ix>[src]

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<N> NodeTrait for N where
    N: Copy + Ord + Hash
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.