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

pub struct LazyCompiler<S> where
    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) -> LazyCompiler<S>[src]

Create an on-demand compiler for PartialSource.

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

pub fn empty() -> LazyCompiler<S>[src]

Create an empty compiler for PartialSource.

Trait Implementations

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

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

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

type Target = S

The resulting type after dereferencing.

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.