pub trait CompileFunction: Fn(Context) -> CompilerReturn + Send + Sync { }
Expand description

Compiler function

compiler function takes Context as parameter, and returns CompilerReturn which is boxed future.

Implementors§

source§

impl<F> CompileFunction for F
where F: Fn(Context) -> CompilerReturn + Send + Sync,