Enum 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: Hasher>(&self, __arg_0: &mut __H)

1.3.0fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Eq for EdgeDirection

impl Ord for EdgeDirection

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

impl PartialOrd for EdgeDirection

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

1.0.0fn lt(&self, other: &Rhs) -> bool

1.0.0fn le(&self, other: &Rhs) -> bool

1.0.0fn gt(&self, other: &Rhs) -> bool

1.0.0fn ge(&self, other: &Rhs) -> bool

impl PartialEq for EdgeDirection

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

1.0.0fn ne(&self, other: &Rhs) -> bool

impl Debug for EdgeDirection

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

impl Clone for EdgeDirection

fn clone(&self) -> EdgeDirection

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for EdgeDirection