Trait budvm::NativeFunction

source ·
pub trait NativeFunction {
    // Required method
    fn invoke(&self, args: &mut PoppedValues<'_>) -> Result<Value, FaultKind>;
}
Expand description

A native function for Bud.

Required Methods§

source

fn invoke(&self, args: &mut PoppedValues<'_>) -> Result<Value, FaultKind>

Invoke this function with args.

Implementors§

source§

impl<T> NativeFunction for Twhere T: for<'a, 'b> Fn(&'b mut PoppedValues<'a>) -> Result<Value, FaultKind>,