[−][src]Struct evalexpr::HashMapContext
A context that stores its mappings in hash maps.
Value and function mappings are stored independently, meaning that there can be a function and a value with the same identifier.
This context is type-safe, meaning that an identifier that is assigned a value of some type once cannot be assigned a value of another type.
Methods
impl HashMapContext
[src]
Trait Implementations
impl Context for HashMapContext
[src]
fn get_value(&self, identifier: &str) -> Option<&Value>
[src]
fn get_function(&self, identifier: &str) -> Option<&Function>
[src]
impl ContextMut for HashMapContext
[src]
fn set_value<S: Into<String>, V: Into<Value>>(
&mut self,
identifier: S,
value: V
) -> EvalexprResult<()>
[src]
&mut self,
identifier: S,
value: V
) -> EvalexprResult<()>
fn set_function<S: Into<String>>(
&mut self,
identifier: S,
function: Function
) -> EvalexprResult<()>
[src]
&mut self,
identifier: S,
function: Function
) -> EvalexprResult<()>
Auto Trait Implementations
impl !Send for HashMapContext
impl !Sync for HashMapContext
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,