Trait interpolator::Context

source ·
pub trait Context {
    // Required method
    fn get(&self, key: &str) -> Option<Formattable<'_>>;
}
Expand description

Context for format and write

Required Methods§

source

fn get(&self, key: &str) -> Option<Formattable<'_>>

Returns the Formattable for the requested key

Implementations on Foreign Types§

source§

impl<K: Borrow<str> + Eq + Hash> Context for HashMap<K, Formattable<'_>>

source§

fn get(&self, key: &str) -> Option<Formattable<'_>>

Implementors§