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§
Sourcefn is_directed() -> bool
fn is_directed() -> bool
§Returns
true: If edge is directed.false: Otherwise.
Sourcefn is_undirected() -> bool
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§
impl EdgeDir for DirectedEdge
For documentation about each function checkout EdgeDir trait.
impl EdgeDir for UndirectedEdge
For documentation about each function checkout EdgeDir trait.