[][src]Struct liquid::partials::OnDemandCompiler

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

An on-demand compiler for PartialSource.

This is unlikely the PartialCompiler you want. This best serves as an example.

This would be useful in cases where:

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

Methods

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

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

Create an on-demand compiler for PartialSource.

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

pub fn empty() -> Self
[src]

Create an empty compiler for PartialSource.

Trait Implementations

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

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

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

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

type Target = S

The resulting type after dereferencing.

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

Auto Trait Implementations

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

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

Blanket Implementations

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

impl<T> From for 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> Any for T where
    T: 'static + ?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> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: Any