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> !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