Trait subst::VariableMap

source ·
pub trait VariableMap<'a> {
    type Value;

    // Required method
    fn get(&'a self, key: &str) -> Option<Self::Value>;
}
Expand description

Trait for types that can be used as a variable map.

Required Associated Types§

source

type Value

The type returned by the get() function.

Required Methods§

source

fn get(&'a self, key: &str) -> Option<Self::Value>

Get a value from the map.

Implementations on Foreign Types§

source§

impl<'a, V: 'a, S: BuildHasher> VariableMap<'a> for HashMap<&str, V, S>

§

type Value = &'a V

source§

fn get(&'a self, key: &str) -> Option<Self::Value>

source§

impl<'a, V: 'a, S: BuildHasher> VariableMap<'a> for HashMap<String, V, S>

§

type Value = &'a V

source§

fn get(&'a self, key: &str) -> Option<Self::Value>

source§

impl<'a, V: 'a> VariableMap<'a> for BTreeMap<String, V>

§

type Value = &'a V

source§

fn get(&'a self, key: &str) -> Option<Self::Value>

source§

impl<'a, V: 'a> VariableMap<'a> for BTreeMap<&str, V>

§

type Value = &'a V

source§

fn get(&'a self, key: &str) -> Option<Self::Value>

Implementors§