pub trait Function<Rv = Value, Args = Vec<Value>>: Send + Sync + 'static {
fn invoke(&self, env: &State<'_, '_>, args: Args) -> Result<Rv, Error>;
}
Expand description
A utility trait that represents global functions.
pub trait Function<Rv = Value, Args = Vec<Value>>: Send + Sync + 'static {
fn invoke(&self, env: &State<'_, '_>, args: Args) -> Result<Rv, Error>;
}
A utility trait that represents global functions.