Trait askama::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 BTreeMap<K, V>
where K: Borrow<str> + Ord, V: Value,

Available on crate feature alloc only.
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,

Available on crate feature alloc only.
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,

Available on crate feature alloc only.
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,

Available on crate feature alloc only.
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,

Available on crate feature std only.
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>

Available on crate feature alloc only.
source§

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

source§

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

Available on crate feature alloc only.
source§

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

source§

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

Available on crate feature alloc only.
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>

Available on crate feature std only.
source§

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

source§

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

Available on crate feature std only.
source§

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

source§

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

Available on crate feature std only.
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§