Struct askama_shared::Config
source · [−]pub struct Config<'a> {
pub dirs: Vec<PathBuf>,
pub syntaxes: BTreeMap<String, Syntax<'a>>,
pub default_syntax: &'a str,
pub escapers: Vec<(HashSet<String>, String)>,
}
Fields
dirs: Vec<PathBuf>
syntaxes: BTreeMap<String, Syntax<'a>>
default_syntax: &'a str
escapers: Vec<(HashSet<String>, String)>
Implementations
sourceimpl Config<'_>
impl Config<'_>
pub fn new(s: &str) -> Result<Config<'_>, CompileError>
pub fn find_template(
&self,
path: &str,
start_at: Option<&Path>
) -> Result<PathBuf, CompileError>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Config<'a>
impl<'a> Send for Config<'a>
impl<'a> Sync for Config<'a>
impl<'a> Unpin for Config<'a>
impl<'a> UnwindSafe for Config<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more