Skip to main content

Loader

Trait Loader 

Source
pub trait Loader: Send + Sync {
    // Required methods
    fn test(&self, path: &Path) -> bool;
    fn load(
        &self,
        path: &Path,
        source: &str,
        diag_engine: &mut DiagnosticEngine<Code>,
    ) -> Result<Loaded, String>;
}

Required Methods§

Source

fn test(&self, path: &Path) -> bool

Source

fn load( &self, path: &Path, source: &str, diag_engine: &mut DiagnosticEngine<Code>, ) -> Result<Loaded, String>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§