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