Function crabzilla::create_sync_fn [−][src]
pub fn create_sync_fn<F>(imported_fn: F, name: String) -> ImportedFn where
F: Fn(Vec<Value>) -> Result<Value, AnyError> + 'static,
Receives a Rust function and returns a structure that can be imported in to a runtime.