Trait Vars

Source
pub trait Vars {
    // Required method
    fn var<K: AsRef<str>>(&self, key: K) -> Option<&str>;
}
Expand description

Variables that replace values in templates

Required Methods§

Source

fn var<K: AsRef<str>>(&self, key: K) -> Option<&str>

Get a variable by name

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§