pub struct MinijinjaEngine { /* private fields */ }Available on crate features
alloc and jinja2 only.Implementations§
Trait Implementations§
Source§impl Clone for MinijinjaEngine
impl Clone for MinijinjaEngine
Source§impl Debug for MinijinjaEngine
impl Debug for MinijinjaEngine
Source§impl Engine for MinijinjaEngine
impl Engine for MinijinjaEngine
fn define_template( &mut self, name: String, data: String, ) -> Result<(), Box<dyn Error>>
fn render( &mut self, name: String, context: Box<dyn Context>, ) -> Result<String, RenderError>
Source§fn load_template(
&mut self,
name: String,
path: Utf8PathBuf,
) -> Result<(), Box<dyn Error>>
fn load_template( &mut self, name: String, path: Utf8PathBuf, ) -> Result<(), Box<dyn Error>>
Available on crate feature
std only.Auto Trait Implementations§
impl !Freeze for MinijinjaEngine
impl !RefUnwindSafe for MinijinjaEngine
impl !UnwindSafe for MinijinjaEngine
impl Send for MinijinjaEngine
impl Sync for MinijinjaEngine
impl Unpin for MinijinjaEngine
impl UnsafeUnpin for MinijinjaEngine
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
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
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more