Struct liquid_core::runtime::StackFrame [−][src]
Layer variables on top of the existing runtime
Implementations
impl<P: Runtime, O: ObjectView> StackFrame<P, O>
[src]
pub fn new(parent: P, data: O) -> Self
[src]
Layer variables on top of the existing runtime
pub fn with_name<S: Into<KString>>(self, name: S) -> Self
[src]
Name the current context
Trait Implementations
impl<P: Runtime, O: ObjectView> Runtime for StackFrame<P, O>
[src]
fn partials(&self) -> &dyn PartialStore
[src]
fn name(&self) -> Option<KStringRef<'_>>
[src]
fn roots(&self) -> BTreeSet<KStringCow<'_>>
[src]
fn try_get(&self, path: &[ScalarCow<'_>]) -> Option<ValueCow<'_>>
[src]
fn get(&self, path: &[ScalarCow<'_>]) -> Result<ValueCow<'_>>
[src]
fn set_global(&self, name: KString, val: Value) -> Option<Value>
[src]
fn set_index(&self, name: KString, val: Value) -> Option<Value>
[src]
fn get_index<'a>(&'a self, name: &str) -> Option<ValueCow<'a>>
[src]
fn registers(&self) -> &Registers
[src]
Auto Trait Implementations
impl<P, O> RefUnwindSafe for StackFrame<P, O> where
O: RefUnwindSafe,
P: RefUnwindSafe,
O: RefUnwindSafe,
P: RefUnwindSafe,
impl<P, O> Send for StackFrame<P, O> where
O: Send,
P: Send,
O: Send,
P: Send,
impl<P, O> Sync for StackFrame<P, O> where
O: Sync,
P: Sync,
O: Sync,
P: Sync,
impl<P, O> Unpin for StackFrame<P, O> where
O: Unpin,
P: Unpin,
O: Unpin,
P: Unpin,
impl<P, O> UnwindSafe for StackFrame<P, O> where
O: UnwindSafe,
P: UnwindSafe,
O: UnwindSafe,
P: UnwindSafe,
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>,