VariableSet

Trait VariableSet 

Source
pub trait VariableSet {
    // Required method
    fn value_for(&self, name: &str) -> Option<f64>;
}
Expand description

Trait representing a set of named variables.

Required Methods§

Source

fn value_for(&self, name: &str) -> Option<f64>

Return the value for a name in the set if it exists.

Implementations on Foreign Types§

Source§

impl<K> VariableSet for BTreeMap<K, f64>
where K: Borrow<str> + Ord + Hash,

Source§

fn value_for(&self, name: &str) -> Option<f64>

Source§

impl<K> VariableSet for HashMap<K, f64>
where K: Borrow<str> + Eq + Hash,

Source§

fn value_for(&self, name: &str) -> Option<f64>

Implementors§