[][src]Struct liquid::partials::LazyCompiler

pub struct LazyCompiler<S: PartialSource> { /* fields omitted */ }

An lazily-caching compiler for PartialSource.

This would be useful in cases where:

  • Most partial-templates aren't used
  • Of the used partial-templates, they are generally used many times.

Note: partial-compilation error reporting is deferred to render-time so content can still be generated even when the content is in an intermediate-state.

Methods

impl<S> LazyCompiler<S> where
    S: PartialSource
[src]

pub fn new(source: S) -> Self
[src]

Create an on-demand compiler for PartialSource.

impl<S> LazyCompiler<S> where
    S: PartialSource + Default
[src]

pub fn empty() -> Self
[src]

Create an empty compiler for PartialSource.

Trait Implementations

impl<S> PartialCompiler for LazyCompiler<S> where
    S: PartialSource + Send + Sync + 'static, 
[src]

impl<S> Default for LazyCompiler<S> where
    S: PartialSource + Default
[src]

impl<S: Debug + PartialSource> Debug for LazyCompiler<S>
[src]

impl<S> DerefMut for LazyCompiler<S> where
    S: PartialSource
[src]

impl<S> Deref for LazyCompiler<S> where
    S: PartialSource
[src]

type Target = S

The resulting type after dereferencing.

Auto Trait Implementations

impl<S> Send for LazyCompiler<S> where
    S: Send

impl<S> Sync for LazyCompiler<S> where
    S: Sync

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Any for T where
    T: Any