pub trait QueryFn<P: Package, Args, R> {
// Required methods
fn arg_types() -> Vec<Ty>;
fn ret_ty() -> Ty;
fn call(
&self,
ctx: &Ctx<'_, P>,
args: &[Value],
) -> Result<Value, CommandError>;
}Expand description
The function of a query command (Fn(&Ctx<P>, args...) -> R; 0 to 6 arguments).
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".