Trait quad_compat_rhai::plugin::PluginFunction [−][src]
pub trait PluginFunction {
fn call(
&self,
context: NativeCallContext<'_>,
args: &mut [&'_ mut Dynamic]
) -> RhaiResult;
fn is_method_call(&self) -> bool;
}
Expand description
Trait implemented by a plugin function.
This trait should not be used directly.
Use the #[export_module]
and #[export_fn]
procedural attributes instead.
Required methods
fn call(
&self,
context: NativeCallContext<'_>,
args: &mut [&'_ mut Dynamic]
) -> RhaiResult
fn call(
&self,
context: NativeCallContext<'_>,
args: &mut [&'_ mut Dynamic]
) -> RhaiResult
Call the plugin function with the arguments provided.
fn is_method_call(&self) -> bool
fn is_method_call(&self) -> bool
Is this plugin function a method?