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

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

Create an on-demand compiler for PartialSource.

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

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

Create an empty compiler for PartialSource.

Trait Implementations

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

impl<S> Default for OnDemandCompiler<S> where
    S: PartialSource + Default
[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]

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

Auto Trait Implementations

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

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

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

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

impl<S> UnwindSafe for OnDemandCompiler<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.