pub trait Builtin: FromArgs {
// Required method
fn call(self, ctx: &BuiltinContext<'_>) -> Result<RValue, RError>;
}Expand description
A trait-based builtin function.
Implementors define their arguments as a struct with #[derive(FromArgs)],
then implement Builtin::call to execute the function body.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.