pub struct RuntimeExecutionStack {
pub values: Vec<Option<ValueContainer>>,
}Fields§
§values: Vec<Option<ValueContainer>>Implementations§
Source§impl RuntimeExecutionStack
impl RuntimeExecutionStack
Sourcepub fn new(values: Vec<ValueContainer>) -> Self
pub fn new(values: Vec<ValueContainer>) -> Self
Creates a new stack with initial allocated stack values.
Sourcepub fn resolve_injected_values(
&mut self,
injected_values: &[InjectedValueDeclaration],
) -> Result<Vec<ValueContainer>, ExecutionError>
pub fn resolve_injected_values( &mut self, injected_values: &[InjectedValueDeclaration], ) -> Result<Vec<ValueContainer>, ExecutionError>
Resolves a list of injected values to actual values on the stack
Sourcepub fn take_runtime_values_with_stack_indices(
&mut self,
values: Vec<RuntimeValue>,
) -> Result<(Vec<ValueContainer>, Vec<Option<StackIndex>>), ExecutionError>
pub fn take_runtime_values_with_stack_indices( &mut self, values: Vec<RuntimeValue>, ) -> Result<(Vec<ValueContainer>, Vec<Option<StackIndex>>), ExecutionError>
Resolves a list of runtime values to actual values on the stack, returning both the resolved values and their corresponding stack indices (for values stored on the stack)
Sourcepub fn restore_stack_values(
&mut self,
values: Vec<ValueContainer>,
stack_indices: Vec<Option<StackIndex>>,
) -> Result<(), ExecutionError>
pub fn restore_stack_values( &mut self, values: Vec<ValueContainer>, stack_indices: Vec<Option<StackIndex>>, ) -> Result<(), ExecutionError>
Restores values to the stack at the given indices, if both the index and value are available.
Source§impl RuntimeExecutionStack
impl RuntimeExecutionStack
Sourcepub fn stack_dump(&self) -> MemoryDump
pub fn stack_dump(&self) -> MemoryDump
Returns a dump of the current stack values.
Trait Implementations§
Source§impl Debug for RuntimeExecutionStack
impl Debug for RuntimeExecutionStack
Auto Trait Implementations§
impl !RefUnwindSafe for RuntimeExecutionStack
impl !Send for RuntimeExecutionStack
impl !Sync for RuntimeExecutionStack
impl !UnwindSafe for RuntimeExecutionStack
impl Forget for RuntimeExecutionStack
impl Freeze for RuntimeExecutionStack
impl Move for RuntimeExecutionStack
impl Unpin for RuntimeExecutionStack
impl UnsafeUnpin for RuntimeExecutionStack
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 moreSource§impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
impl<T, U> TypeSubset<U> for Twhere
U: TypeSuperset<T>,
Source§fn is_subset_of(&self, other: &U) -> bool
fn is_subset_of(&self, other: &U) -> bool
Returns whether self is a subset of type