Struct evalexpr::EmptyContext
source · [−]pub struct EmptyContext;
Expand description
A context that returns None
for each identifier.
Trait Implementations
sourceimpl Context for EmptyContext
impl Context for EmptyContext
sourcefn get_value(&self, _identifier: &str) -> Option<&Value>
fn get_value(&self, _identifier: &str) -> Option<&Value>
Returns the value that is linked to the given identifier.
sourcefn call_function(
&self,
identifier: &str,
_argument: &Value
) -> EvalexprResult<Value>
fn call_function(
&self,
identifier: &str,
_argument: &Value
) -> EvalexprResult<Value>
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
sourceimpl Debug for EmptyContext
impl Debug for EmptyContext
sourceimpl Default for EmptyContext
impl Default for EmptyContext
sourcefn default() -> EmptyContext
fn default() -> EmptyContext
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for EmptyContext
impl Send for EmptyContext
impl Sync for EmptyContext
impl Unpin for EmptyContext
impl UnwindSafe for EmptyContext
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more