Struct liquid_core::runtime::RuntimeCore
source · [−]pub struct RuntimeCore<'g> { /* private fields */ }Expand description
Processing runtime for a template.
Implementations
sourceimpl<'g> RuntimeCore<'g>
impl<'g> RuntimeCore<'g>
sourcepub fn partials(&self) -> &dyn PartialStore
pub fn partials(&self) -> &dyn PartialStore
Partial templates for inclusion.
Trait Implementations
sourceimpl<'g> Default for RuntimeCore<'g>
impl<'g> Default for RuntimeCore<'g>
sourceimpl<'g> Runtime for RuntimeCore<'g>
impl<'g> Runtime for RuntimeCore<'g>
sourcefn partials(&self) -> &dyn PartialStore
fn partials(&self) -> &dyn PartialStore
Partial templates for inclusion.
sourcefn name(&self) -> Option<KStringRef<'_>>
fn name(&self) -> Option<KStringRef<'_>>
The name of the currently active template.
sourcefn roots(&self) -> BTreeSet<KStringCow<'_>>
fn roots(&self) -> BTreeSet<KStringCow<'_>>
All available values
sourcefn try_get(&self, _path: &[ScalarCow<'_>]) -> Option<ValueCow<'_>>
fn try_get(&self, _path: &[ScalarCow<'_>]) -> Option<ValueCow<'_>>
Recursively index into the stack.
sourcefn get(&self, path: &[ScalarCow<'_>]) -> Result<ValueCow<'_>>
fn get(&self, path: &[ScalarCow<'_>]) -> Result<ValueCow<'_>>
Recursively index into the stack.
sourcefn set_global(&self, _name: KString, _val: Value) -> Option<Value>
fn set_global(&self, _name: KString, _val: Value) -> Option<Value>
Sets a value in the global runtime.
sourcefn set_index(&self, _name: KString, _val: Value) -> Option<Value>
fn set_index(&self, _name: KString, _val: Value) -> Option<Value>
Used by increment and decrement tags
Auto Trait Implementations
impl<'g> !RefUnwindSafe for RuntimeCore<'g>
impl<'g> !Send for RuntimeCore<'g>
impl<'g> !Sync for RuntimeCore<'g>
impl<'g> Unpin for RuntimeCore<'g>
impl<'g> !UnwindSafe for RuntimeCore<'g>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more