Trait starlark::values::function::NativeFunc
source · pub trait NativeFunc: Send + Sync + 'static {
// Required method
fn invoke<'v>(
&self,
eval: &mut Evaluator<'v, '_>,
args: &Arguments<'v, '_>
) -> Result<Value<'v>>;
}
Expand description
A native function that can be evaluated.
This trait is implemented by generated code and rarely needed to be implemented manually.