Struct liquid_core::runtime::StackFrame
source · [−]pub struct StackFrame<P, O> { /* private fields */ }Expand description
Layer variables on top of the existing runtime
Implementations
sourceimpl<P: Runtime, O: ObjectView> StackFrame<P, O>
impl<P: Runtime, O: ObjectView> StackFrame<P, O>
Trait Implementations
sourceimpl<P: Runtime, O: ObjectView> Runtime for StackFrame<P, O>
impl<P: Runtime, O: ObjectView> Runtime for StackFrame<P, O>
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<P, O> RefUnwindSafe for StackFrame<P, O> where
O: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, O> Send for StackFrame<P, O> where
O: Send,
P: Send,
impl<P, O> Sync for StackFrame<P, O> where
O: Sync,
P: Sync,
impl<P, O> Unpin for StackFrame<P, O> where
O: Unpin,
P: Unpin,
impl<P, O> UnwindSafe for StackFrame<P, O> where
O: UnwindSafe,
P: UnwindSafe,
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