Skip to main content

Engine

Trait Engine 

Source
pub trait Engine: Synthesizer + Sized {
    type Config;

    const NAME: &'static str;

    // Required methods
    fn check_from(config: &Self::Config) -> Result<PathBuf, SynthesisError>;
    fn load_from(config: Self::Config) -> Result<Self, SynthesisError>;
}
Expand description

How an engine is constructed from its own configuration. NAME names the engine in logs and errors; Config carries whatever it needs to load.

Required Associated Constants§

Source

const NAME: &'static str

Required Associated Types§

Required Methods§

Source

fn check_from(config: &Self::Config) -> Result<PathBuf, SynthesisError>

Resolves what a load would read, without reading it or starting a child.

Source

fn load_from(config: Self::Config) -> Result<Self, SynthesisError>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§