Skip to main content

RelonFunction

Trait RelonFunction 

Source
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§

Source

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".

Implementors§