[−][src]Trait arithmetic_eval::VariableMap
Encapsulates read access to named variables.
Required methods
pub fn get_variable(&self, name: &str) -> Option<Value<'a, T>>
[src]
Returns value of the named variable, or None
if it is not defined.
Provided methods
pub fn compile_module<Id, G>(
&self,
id: Id,
block: &Block<'a, G>
) -> Result<ExecutableModule<'a, T>, Error<'a>> where
Id: ModuleId,
G: Grammar<Lit = T>,
T: Clone + Debug,
[src]
&self,
id: Id,
block: &Block<'a, G>
) -> Result<ExecutableModule<'a, T>, Error<'a>> where
Id: ModuleId,
G: Grammar<Lit = T>,
T: Clone + Debug,
Creates a module based on imports solely from this map.
The default implementation is reasonable for most cases.