[][src]Struct evalexpr::HashMapConfiguration

pub struct HashMapConfiguration { /* fields omitted */ }

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]

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]

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

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.