Struct rubble_templates_evaluators::simple::compiler::TemplateCompiler [−][src]
Implementations
impl<E> TemplateCompiler<E> where
E: Evaluator,
[src]
E: Evaluator,
pub fn new(engine: E) -> TemplateCompiler<E>
[src]
Trait Implementations
impl<'a, E> Compiler<&'a Template> for TemplateCompiler<E> where
E: Evaluator,
[src]
E: Evaluator,
type Item = TemplateSlice<'a>
Type of a single template part that can be compiled/evaluated/parsed. Read more
type ItemIterator = EvaluableMixedContentIterator<'a, Template>
Iterator that can provide template parts that need to be compiled.
fn compile<C>(
&self,
content: C,
context: Context
) -> Result<String, CompilationError> where
C: EvaluableMixedContent<Item = Self::Item, IntoIter = Self::ItemIterator>,
[src]
&self,
content: C,
context: Context
) -> Result<String, CompilationError> where
C: EvaluableMixedContent<Item = Self::Item, IntoIter = Self::ItemIterator>,
Auto Trait Implementations
impl<E> RefUnwindSafe for TemplateCompiler<E> where
E: RefUnwindSafe,
E: RefUnwindSafe,
impl<E> Send for TemplateCompiler<E> where
E: Send,
E: Send,
impl<E> Sync for TemplateCompiler<E> where
E: Sync,
E: Sync,
impl<E> Unpin for TemplateCompiler<E> where
E: Unpin,
E: Unpin,
impl<E> UnwindSafe for TemplateCompiler<E> where
E: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,