[−][src]Trait litto::value::AbstractValue
An abstract interface for Value
that supports function calls.
Provided methods
fn apply(&self, env: &L::Env, args: &[L::Expr]) -> Result<L::Value, L::Error>
Call a function.
This can have side effect on env
. Errors might be used for special
control flow purposes.
Implementors
impl AbstractValue<TinyLang> for Bool
[src]
impl AbstractValue<TinyLang> for Int
[src]
impl AbstractValue<TinyLang> for List
[src]
impl AbstractValue<TinyLang> for Quote
[src]
impl AbstractValue<TinyLang> for Str
[src]
impl AbstractValue<TinyLang> for NativeProcedure
[src]
fn apply(
&self,
env: &<TinyLang as Interpreter>::Env,
args: &[<TinyLang as Interpreter>::Expr]
) -> Result<<TinyLang as Interpreter>::Value, <TinyLang as Interpreter>::Error>
[src]
&self,
env: &<TinyLang as Interpreter>::Env,
args: &[<TinyLang as Interpreter>::Expr]
) -> Result<<TinyLang as Interpreter>::Value, <TinyLang as Interpreter>::Error>
impl AbstractValue<TinyLang> for Nil
[src]
impl AbstractValue<TinyLang> for Procedure
[src]
fn apply(
&self,
arg_env: &<TinyLang as Interpreter>::Env,
args: &[<TinyLang as Interpreter>::Expr]
) -> Result<<TinyLang as Interpreter>::Value, <TinyLang as Interpreter>::Error>
[src]
&self,
arg_env: &<TinyLang as Interpreter>::Env,
args: &[<TinyLang as Interpreter>::Expr]
) -> Result<<TinyLang as Interpreter>::Value, <TinyLang as Interpreter>::Error>