pub trait GlobalInvocable<A, R>: Sealed<A, R> {
const FN_TYPE: FunctionType;
// Required method
fn invoke(
self,
ctx: &IScriptable,
frame: &mut StackFrame,
ret: Option<&mut MaybeUninit<R>>,
);
}
Expand description
A trait for functions that can be exported as global functions.
Required Associated Constants§
const FN_TYPE: FunctionType
Required Methods§
fn invoke( self, ctx: &IScriptable, frame: &mut StackFrame, ret: Option<&mut MaybeUninit<R>>, )
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.