Struct pupil::env::Env
[−]
[src]
pub struct Env { /* fields omitted */ }
The environment.
Stores the builtins available to expressions and the last answer.
Methods
impl Env
[src]
fn new() -> Env
Create a new environment.
fn init(&mut self)
fn find(&self, id: &str) -> Option<BuiltinFn>
Find a builtin.
fn var(&self, id: &str) -> Option<Value>
Find a variable.
fn set_var<I: Into<Cow<'static, str>>>(&mut self, id: I, val: Value)
Set a variable.