Skip to main content

NativeFn

Type Alias NativeFn 

Source
pub type NativeFn<P> = Arc<dyn Fn(&mut StepCtx<'_, P>, Vec<Value>) -> Result<Value, Error> + Sync + Send>;
Expand description

Stateful/IO function with full step context (fs, cwd, envs, vars, pipes).

Aliased Typeยง

pub struct NativeFn<P> { /* private fields */ }