pub trait Callable: CallableFormals {
// Provided methods
fn match_args(
&self,
args: List,
stack: &mut CallStack,
) -> Result<(List, List), Signal> { ... }
fn match_arg_exprs(
&self,
args: ExprList,
stack: &mut CallStack,
) -> Result<(List, List), Signal> { ... }
fn call(&self, args: ExprList, stack: &mut CallStack) -> EvalResult { ... }
fn call_mut(&self, args: ExprList, stack: &mut CallStack) -> EvalResult { ... }
fn call_matched(
&self,
_args: List,
_ellipsis: List,
_stack: &mut CallStack,
) -> EvalResult { ... }
fn call_assign(
&self,
value: Expr,
args: ExprList,
stack: &mut CallStack,
) -> EvalResult { ... }
}
Formats the value using the given formatter.
Read more