Trait NodePathTrait

Source
pub trait NodePathTrait<T>
where T: PartialOrd + Clone + Display + Eq + Hash,
{ // Required methods fn new(node: T, edges: Vec<T>) -> Self; fn get_node(&self) -> T; fn get_edges(&self) -> Vec<T>; }
Expand description

Trait for NodePath, the argument of Multidigraph.add_paths

Required Methods§

Source

fn new(node: T, edges: Vec<T>) -> Self

Source

fn get_node(&self) -> T

Source

fn get_edges(&self) -> Vec<T>

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<T> NodePathTrait<T> for NodePath<T>
where T: PartialOrd + Clone + Display + Eq + Hash,