pub trait GraphDatasetLoader {
// Required methods
fn load_from_file<P: AsRef<Path>>(&self, path: P) -> IoResult<GraphData>;
fn load_from_directory<P: AsRef<Path>>(
&self,
path: P,
) -> IoResult<Vec<GraphData>>;
fn supported_extensions(&self) -> Vec<&'static str>;
}Expand description
Graph dataset loader trait
Required Methods§
Sourcefn load_from_directory<P: AsRef<Path>>(
&self,
path: P,
) -> IoResult<Vec<GraphData>>
fn load_from_directory<P: AsRef<Path>>( &self, path: P, ) -> IoResult<Vec<GraphData>>
Load multiple graphs from directory
Sourcefn supported_extensions(&self) -> Vec<&'static str>
fn supported_extensions(&self) -> Vec<&'static str>
Get supported file extensions
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".