[−][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]
fn set_value(&mut self, identifier: String, value: Value) -> EvalexprResult<()>
[src]
fn set_function(
&mut self,
identifier: String,
function: Function
) -> EvalexprResult<()>
[src]
&mut self,
identifier: String,
function: Function
) -> EvalexprResult<()>
impl Default for HashMapContext
[src]
fn default() -> HashMapContext
[src]
impl Debug for HashMapContext
[src]
Auto Trait Implementations
impl !Send for HashMapContext
impl !Sync for HashMapContext
impl Unpin for HashMapContext
impl !RefUnwindSafe for HashMapContext
impl !UnwindSafe for HashMapContext
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,