Struct evalexpr::EmptyContext [−][src]
pub struct EmptyContext;
Expand description
A context that returns None
for each identifier.
Trait Implementations
impl Context for EmptyContext
[src]
impl Context for EmptyContext
[src]fn get_value(&self, _identifier: &str) -> Option<&Value>
[src]
fn get_value(&self, _identifier: &str) -> Option<&Value>
[src]Returns the value that is linked to the given identifier.
fn call_function(
&self,
identifier: &str,
_argument: &Value
) -> EvalexprResult<Value>
[src]
fn call_function(
&self,
identifier: &str,
_argument: &Value
) -> EvalexprResult<Value>
[src]Calls the function that is linked to the given identifier with the given argument.
If no function with the given identifier is found, this method returns EvalexprError::FunctionIdentifierNotFound
. Read more