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

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)

Methods

impl<Ix> Edge<Ix> where
    Ix: IndexType
[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).

Returns the wrapped edge index value

Returns the wrapped index of the source vertex

Returns the wrapped index of the destination vertex

Trait Implementations

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

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter. Read more

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

Returns the "default value" for a type. Read more

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

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

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

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

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

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

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

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