[−][src]Enum rant::runtime::Intent
Intents are actions queued on a stack frame that are performed before the frame runs.
Variants
Take the pending output from last frame and print it.
Check if the active block is finished and either continue the block or pop the state from the stack
Pop a value off the stack and assign it to an existing variable.
Pop a value off the stack and assign it to a new variable.
Pop a block from pending_exprs
and evaluate it. If there are no expressions left, switch intent to GetValue
.
Fields of BuildDynamicGetter
Pop dynamic_key_count
values off the stack and use them for expression fields in a getter.
Fields of GetValue
Pop a block from pending_exprs
and evaluate it. If there are no expressions left, switch intent to SetValue
.
Fields of BuildDynamicSetter
Pop expr_count
values off the stack and use them for expression fields in a setter.
Evaluate arg_exprs
in order, then pop the argument values off the stack, pop a function off the stack, and pass the arguments to the function.
Pop argc
args off the stack, then pop a function off the stack and call it with the args.
Pop value from stack and add it to a list. If index
is out of range, print the list.
Pop value and optional key from stack and add them to a map. If pair_index
is out of range, print the map.
Pops a map off the stack and loads it as a module with the specified name.
Fields of LoadModule
module_name: String
RuntimeCall(Box<dyn FnOnce(&mut VM<'_>) -> RuntimeResult<()>>)
Calls a function that accepts a mutable reference to the current runtime.
Auto Trait Implementations
impl !RefUnwindSafe for Intent
impl !Send for Intent
impl !Sync for Intent
impl Unpin for Intent
impl !UnwindSafe for Intent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,