pub trait RelonFunction: Send + Sync {
// Required method
fn call(
&self,
args: NativeArgs,
range: TokenRange,
) -> Result<Value, RuntimeError>;
}Expand description
Host-implemented native function. Registered into a crate::Context
via Context::register_fn / register_pure_fn.
Required Methods§
fn call( &self, args: NativeArgs, range: TokenRange, ) -> Result<Value, RuntimeError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".