Skip to main content

RunKernel

Trait RunKernel 

Source
pub trait RunKernel: Send + Sync {
    // Required method
    fn run<'g>(
        &self,
        graph: &'g Graph,
        run: RunOptions,
    ) -> Result<SearchResult<'g>>;
}
Expand description

Object-safe seam that runs a fully-constructed kernel against a graph.

Used internally as the boxed type behind BoxedRun. Implemented by the closure produced by boxed_run.

Required Methods§

Source

fn run<'g>(&self, graph: &'g Graph, run: RunOptions) -> Result<SearchResult<'g>>

Runs the kernel against graph with run options.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F> RunKernel for F
where F: for<'g> Fn(&'g Graph, RunOptions) -> Result<SearchResult<'g>> + Send + Sync,