GraphLoader

Trait GraphLoader 

Source
pub trait GraphLoader {
    // Required methods
    fn load<P: AsRef<Path>>(path: P) -> Result<Graph, IoError>;
    fn write<P: AsRef<Path>>(graph: &Graph, path: P) -> Result<(), IoError>;
}
Expand description

Trait for graph file loaders and writers

Required Methods§

Source

fn load<P: AsRef<Path>>(path: P) -> Result<Graph, IoError>

Load a graph from a file

Source

fn write<P: AsRef<Path>>(graph: &Graph, path: P) -> Result<(), IoError>

Write a graph to a file

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§