Struct rurtle::environ::stack::Frame
[−]
[src]
pub struct Frame {
pub locals: HashMap<String, Value>,
pub should_return: bool,
pub return_value: Option<Value>,
pub fn_name: String,
pub is_global: bool,
}A Frame contains information about the current function.
A new Frame is constructed each time you enter a function
Fields
locals | Local variables for the function |
should_return | If this flag is set, the current function should return |
return_value | Value that the current function should return (if any) |
fn_name | Name of the function |
is_global | Flag indicating if this frame is the global frame |