Trait callisp::ast::LispCallable
source · pub trait LispCallable: Debug + DynClone {
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.