Struct liquid_core::runtime::RuntimeBuilder [−][src]
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]
self,
values: &'n dyn ObjectView
) -> RuntimeBuilder<'n, 'p>
Initialize the stack with the given globals.
pub fn set_partials<'n>(
self,
values: &'n dyn PartialStore
) -> RuntimeBuilder<'g, 'n>
[src]
self,
values: &'n dyn PartialStore
) -> RuntimeBuilder<'g, 'n>
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]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
[src]
T: Any,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,