Enum daggy::petgraph::EdgeDirection [] [src]

pub enum EdgeDirection {
    Outgoing,
    Incoming,
}

Edge direction

Variants

Outgoing

An Outgoing edge is an outward edge from the current node.

Incoming

An Incoming edge is an inbound edge to the current node.

Methods

impl EdgeDirection

fn opposite(&self) -> EdgeDirection

Return the opposite EdgeDirection.

Trait Implementations

Derived Implementations

impl Hash for EdgeDirection

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

impl Eq for EdgeDirection

impl Ord for EdgeDirection

fn cmp(&self, __arg_0: &EdgeDirection) -> Ordering

impl PartialOrd<EdgeDirection> for EdgeDirection

fn partial_cmp(&self, __arg_0: &EdgeDirection) -> Option<Ordering>

impl PartialEq<EdgeDirection> for EdgeDirection

fn eq(&self, __arg_0: &EdgeDirection) -> bool

impl Debug for EdgeDirection

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

Formats the value using the given formatter.

impl Clone for EdgeDirection

fn clone(&self) -> EdgeDirection

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 Copy for EdgeDirection