pub trait Method<C>:
Send
+ Sync
+ 'staticwhere
C: NativeClass,{
// Required method
fn call(&self, this: TInstance<'_, C>, args: Varargs<'_>) -> Variant;
// Provided method
fn site() -> Option<Site<'static>> { ... }
}Expand description
Safe low-level trait for stateful, variadic methods that can be called on a native script type.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.