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)

fn 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>

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

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

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

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

impl PartialEq for EdgeDirection

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

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

impl Debug for EdgeDirection

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

impl Clone for EdgeDirection

fn clone(&self) -> EdgeDirection

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

impl Copy for EdgeDirection