[][src]Struct outils::types::Edge

pub struct Edge<Ix = DefaultIndexType> { /* fields omitted */ }

Light-weight, read-only type holding an edge index and the two vertices connected by the indexed edge, i.e. e = (v, w)

Implementations

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

pub fn new(
    index: EdgeIndex<Ix>,
    src: VertexIndex<Ix>,
    dst: VertexIndex<Ix>
) -> Self
[src]

Construct a new Edge from an edge index value and the two vertex indices connected by the new edge, i.e. e = (src, dst).

pub fn index(&self) -> EdgeIndex<Ix>[src]

Returns the wrapped edge index value

pub fn src(&self) -> VertexIndex<Ix>[src]

Returns the wrapped index of the source vertex

pub fn dst(&self) -> VertexIndex<Ix>[src]

Returns the wrapped index of the destination vertex

Trait Implementations

impl<Ix: Clone> Clone for Edge<Ix>[src]

impl<Ix: Copy> Copy for Edge<Ix>[src]

impl<Ix: Debug> Debug for Edge<Ix>[src]

impl<Ix: Default> Default for Edge<Ix>[src]

impl<Ix: Eq> Eq for Edge<Ix>[src]

impl<Ix: Hash> Hash for Edge<Ix>[src]

impl<Ix: Ord> Ord for Edge<Ix>[src]

impl<Ix: PartialEq> PartialEq<Edge<Ix>> for Edge<Ix>[src]

impl<Ix: PartialOrd> PartialOrd<Edge<Ix>> for Edge<Ix>[src]

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

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

Auto Trait Implementations

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

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

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

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

impl<Ix> UnwindSafe for Edge<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<T> From<T> for T[src]

impl<T> IndexType for T where
    T: Default + Debug + Copy + Eq + Ord
[src]

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

impl<T> KeyType for T where
    T: Default + Debug + Copy + Eq + 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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> ValueType for T where
    T: Default + Debug
[src]