pub struct SandboxedStackFrame<P, O> { /* private fields */ }
Expand description
A StackFrame
where variables are not recursively searched for,
However, you can still access the parent’s partials.
Implementations§
Source§impl<P: Runtime, O: ObjectView> SandboxedStackFrame<P, O>
impl<P: Runtime, O: ObjectView> SandboxedStackFrame<P, O>
Trait Implementations§
Source§impl<P: Runtime, O: ObjectView> Runtime for SandboxedStackFrame<P, O>
impl<P: Runtime, O: ObjectView> Runtime for SandboxedStackFrame<P, O>
Source§fn partials(&self) -> &dyn PartialStore
fn partials(&self) -> &dyn PartialStore
Partial templates for inclusion.
Source§fn name(&self) -> Option<KStringRef<'_>>
fn name(&self) -> Option<KStringRef<'_>>
The name of the currently active template.
Source§fn roots(&self) -> BTreeSet<KStringCow<'_>>
fn roots(&self) -> BTreeSet<KStringCow<'_>>
All available values
Source§fn try_get(&self, path: &[ScalarCow<'_>]) -> Option<ValueCow<'_>>
fn try_get(&self, path: &[ScalarCow<'_>]) -> Option<ValueCow<'_>>
Recursively index into the stack.
Source§fn get(&self, path: &[ScalarCow<'_>]) -> Result<ValueCow<'_>>
fn get(&self, path: &[ScalarCow<'_>]) -> Result<ValueCow<'_>>
Recursively index into the stack.
Source§fn 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.
Source§fn 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> !Freeze for SandboxedStackFrame<P, O>
impl<P, O> !RefUnwindSafe for SandboxedStackFrame<P, O>
impl<P, O> !Send for SandboxedStackFrame<P, O>
impl<P, O> !Sync for SandboxedStackFrame<P, O>
impl<P, O> Unpin for SandboxedStackFrame<P, O>
impl<P, O> !UnwindSafe for SandboxedStackFrame<P, O>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more