Skip to main content

JudgeLoader

Trait JudgeLoader 

Source
pub trait JudgeLoader: Send + Sync {
    // Required method
    fn load(&self, path: &Path) -> Result<Arc<dyn Target>, EvalError>;
}
Expand description

Compiles judge workflows for judge assertions. Called once per distinct workflow file; the result is shared by every test.

Required Methods§

Source

fn load(&self, path: &Path) -> Result<Arc<dyn Target>, EvalError>

Load and compile the judge at path (already resolved against the eval file’s directory).

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> JudgeLoader for F
where F: Fn(&Path) -> Result<Arc<dyn Target>, EvalError> + Send + Sync,