Struct liquid_core::runtime::RuntimeBuilder
source · pub struct RuntimeBuilder<'g, 'p> { /* private fields */ }Expand description
Create processing runtime for a template.
Implementations§
source§impl<'c, 'g: 'c, 'p: 'c> RuntimeBuilder<'g, 'p>
impl<'c, 'g: 'c, 'p: 'c> RuntimeBuilder<'g, 'p>
sourcepub fn set_globals<'n>(
self,
values: &'n dyn ObjectView,
) -> RuntimeBuilder<'n, 'p>
pub fn set_globals<'n>( self, values: &'n dyn ObjectView, ) -> RuntimeBuilder<'n, 'p>
Initialize the stack with the given globals.
sourcepub fn set_partials<'n>(
self,
values: &'n dyn PartialStore,
) -> RuntimeBuilder<'g, 'n>
pub fn set_partials<'n>( self, values: &'n dyn PartialStore, ) -> RuntimeBuilder<'g, 'n>
Initialize partial-templates available for including.
Trait Implementations§
Auto Trait Implementations§
impl<'g, 'p> Freeze for RuntimeBuilder<'g, 'p>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more