pub trait LispCallable: Debug + DynClone {
// Required methods
fn arity(&self) -> &FunctionArity;
fn call(
&self,
args: Vec<Ast>,
env: &mut Environment,
) -> Result<Ast, LispError>;
}
Expand description
Trait used to define Lisp functions.
Required Methods§
Sourcefn arity(&self) -> &FunctionArity
fn arity(&self) -> &FunctionArity
Return the arity of the function.