pub struct TemplateEngine { /* private fields */ }Implementations§
Source§impl TemplateEngine
 
impl TemplateEngine
pub fn new() -> EngineResult<Self>
pub fn new_for_testing() -> EngineResult<Self>
pub fn discover_template_files( &self, template_dir: &Path, ) -> EngineResult<Vec<TemplateFile>>
pub async fn process_template( &mut self, template_dir: &Path, context: &Context, ) -> EngineResult<ProcessedTemplate>
pub async fn process_composed_template( &mut self, composed: ComposedTemplate, context: &Context, ) -> EngineResult<ProcessedTemplate>
pub fn render_string( &mut self, template: &str, context: &Context, ) -> EngineResult<String>
pub fn validate_context( &self, context: &Context, config: &TemplateConfig, ) -> EngineResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TemplateEngine
impl !RefUnwindSafe for TemplateEngine
impl Send for TemplateEngine
impl Sync for TemplateEngine
impl Unpin for TemplateEngine
impl !UnwindSafe for TemplateEngine
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more