[][src]Struct liquid::interpreter::ContextBuilder

pub struct ContextBuilder<'g> where
    'g: 'g, 
{ /* fields omitted */ }

Create processing context for a template.

Methods

impl<'g> ContextBuilder<'g>[src]

pub fn new() -> ContextBuilder<'g>[src]

Creates a new, empty rendering context.

pub fn set_globals(
    self,
    values: &'g (dyn ValueStore + 'g)
) -> ContextBuilder<'g>
[src]

Initialize the stack with the given globals.

pub fn set_partials(
    self,
    values: &'g (dyn PartialStore + 'g)
) -> ContextBuilder<'g>
[src]

Initialize partial-templates availible for including.

pub fn build(self) -> Context<'g>[src]

Create the Context.

Trait Implementations

impl<'g> Default for ContextBuilder<'g>[src]

Auto Trait Implementations

impl<'g> !Send for ContextBuilder<'g>

impl<'g> Unpin for ContextBuilder<'g>

impl<'g> !Sync for ContextBuilder<'g>

impl<'g> !UnwindSafe for ContextBuilder<'g>

impl<'g> !RefUnwindSafe for ContextBuilder<'g>

Blanket Implementations

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.

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

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

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

impl<T> Any for T where
    T: Any