[−][src]Struct evalexpr::HashMapConfiguration
A configuration 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.
Methods
impl HashMapConfiguration
[src]
pub fn new() -> Self
[src]
Constructs a HashMapConfiguration
with no mappings.
pub fn insert_variable<S: Into<String>, V: Into<Value>>(
&mut self,
identifier: S,
value: V
)
[src]
&mut self,
identifier: S,
value: V
)
Adds a variable mapping to the configuration.
Value and function mappings are stored independently, meaning that there can be a function and a variable with the same identifier.
pub fn insert_function<S: Into<String>>(
&mut self,
identifier: S,
function: Function
)
[src]
&mut self,
identifier: S,
function: Function
)
Adds a function mappign to the configuration.
Value and function mappings are stored independently, meaning that there can be a function and a variable with the same identifier.
Trait Implementations
impl Configuration for HashMapConfiguration
[src]
Auto Trait Implementations
impl !Send for HashMapConfiguration
impl !Sync for HashMapConfiguration
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
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>,