GraphLoader

Trait GraphLoader 

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

Trait for graph file loaders and writers

Required Methods§

Source

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

Load a graph from a file

Source

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

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§