EdgeDir

Trait EdgeDir 

Source
pub trait EdgeDir {
    // Required methods
    fn is_directed() -> bool;
    fn is_undirected() -> bool;
}
Expand description

Defines functionalities to determine wether edges in the graph are directed or not.

Required Methods§

Source

fn is_directed() -> bool

§Returns
  • true: If edge is directed.
  • false: Otherwise.
Source

fn is_undirected() -> bool

§Returns
  • true: If edge is undirected.
  • false: Otherwise.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl EdgeDir for DirectedEdge

For documentation about each function checkout EdgeDir trait.

Source§

impl EdgeDir for UndirectedEdge

For documentation about each function checkout EdgeDir trait.