Trait Values

Source
pub trait Values {
    // Required method
    fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>;
}
Expand description

A runtime value store for Template::render_with_values().

Required Methods§

Source

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Try to find key in this store.

Implementations on Foreign Types§

Source§

impl Values for ()

Source§

fn get_value<'a>(&'a self, _: &str) -> Option<&'a dyn Any>

Source§

impl<K, V> Values for (K, V)
where K: Borrow<str>, V: Value,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<K, V> Values for BTreeMap<K, V>
where K: Borrow<str> + Ord, V: Value,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<K, V> Values for LinkedList<(K, V)>
where K: Borrow<str>, V: Value,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<K, V> Values for VecDeque<(K, V)>
where K: Borrow<str>, V: Value,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<K, V> Values for Vec<(K, V)>
where K: Borrow<str>, V: Value,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<K, V> Values for [(K, V)]
where K: Borrow<str>, V: Value,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<K, V, S> Values for HashMap<K, V, S>
where K: Borrow<str> + Eq + Hash, V: Value, S: BuildHasher,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<K, V, const N: usize> Values for [(K, V); N]
where K: Borrow<str>, V: Value,

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for &T

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for &mut T

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for Box<T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for Rc<T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for Arc<T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for Ref<'_, T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for RefMut<'_, T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for MutexGuard<'_, T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for RwLockReadGuard<'_, T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values + ?Sized> Values for RwLockWriteGuard<'_, T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Source§

impl<T: Values> Values for Option<T>

Source§

fn get_value<'a>(&'a self, key: &str) -> Option<&'a dyn Any>

Implementors§