pub trait StaticArgsMethod<C: NativeClass>: Send + Sync + 'static {
    type Args: FromVarargs;
    fn call(&self, this: TInstance<'_, C>, args: Self::Args) -> Variant;

    fn site() -> Option<Site<'static>> { ... }
}
Expand description

Trait for methods whose argument lists are known at compile time. Not to be confused with a “static method”.

Associated Types

Required methods

Provided methods

Returns an optional site where this method is defined. Used for logging errors in FFI wrappers.

Default implementation returns None.

Implementors