pub trait Method: Send + Sync {
// Required method
fn call(&self, recv: Val, args: &[Val]) -> Result<Val, EvalError>;
}Expand description
A custom method that can be registered with MethodRegistry.
recv — the value the method was called on
args — positional arguments, already evaluated to Val