GraphNodeFromStr

Trait GraphNodeFromStr 

Source
pub trait GraphNodeFromStr: GraphNode {
    // Required method
    fn from_str(input: &str) -> Result<Self>
       where Self: Sized;
}

Required Methods§

Source

fn from_str(input: &str) -> Result<Self>
where Self: Sized,

Parse the node from a str

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> GraphNodeFromStr for T
where T: FromStr + GraphNode,