Struct liquid_core::runtime::RuntimeBuilder[][src]

pub struct RuntimeBuilder<'g, 'p> { /* fields omitted */ }

Create processing runtime for a template.

Implementations

impl<'c, 'g: 'c, 'p: 'c> RuntimeBuilder<'g, 'p>[src]

pub fn new() -> Self[src]

Creates a new, empty rendering runtime.

pub fn set_globals<'n>(
    self,
    values: &'n dyn ObjectView
) -> RuntimeBuilder<'n, 'p>
[src]

Initialize the stack with the given globals.

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

Initialize partial-templates availible for including.

pub fn build(self) -> impl Runtime + 'c[src]

Create the Runtime.

Trait Implementations

impl Default for RuntimeBuilder<'static, 'static>[src]

Auto Trait Implementations

impl<'g, 'p> !RefUnwindSafe for RuntimeBuilder<'g, 'p>

impl<'g, 'p> !Send for RuntimeBuilder<'g, 'p>

impl<'g, 'p> !Sync for RuntimeBuilder<'g, 'p>

impl<'g, 'p> Unpin for RuntimeBuilder<'g, 'p>

impl<'g, 'p> !UnwindSafe for RuntimeBuilder<'g, 'p>

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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.