Importer

Trait Importer 

Source
pub trait Importer: Send + Sync {
    // Required method
    fn import(
        &self,
        source: &Path,
        output: &Path,
        sources: &impl Sources,
        dependencies: &impl Dependencies,
    ) -> Result<(), ImportError>;
}
Expand description

Trait for an importer.

Required Methods§

Source

fn import( &self, source: &Path, output: &Path, sources: &impl Sources, dependencies: &impl Dependencies, ) -> Result<(), ImportError>

Reads data from source path and writes result at output path.

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§