pub struct Scope<'s> { /* private fields */ }
Expand description
Provides controlled access to the parameters passed to a callable.
Implementations§
Source§impl<'s> Scope<'s>
impl<'s> Scope<'s>
Sourcepub fn pop_boolean(&mut self) -> bool
pub fn pop_boolean(&mut self) -> bool
Pops the top of the stack as a boolean value.
Sourcepub fn pop_boolean_with_pos(&mut self) -> (bool, LineCol)
pub fn pop_boolean_with_pos(&mut self) -> (bool, LineCol)
Pops the top of the stack as a boolean value.
Sourcepub fn pop_double(&mut self) -> f64
pub fn pop_double(&mut self) -> f64
Pops the top of the stack as a double value.
Sourcepub fn pop_double_with_pos(&mut self) -> (f64, LineCol)
pub fn pop_double_with_pos(&mut self) -> (f64, LineCol)
Pops the top of the stack as a double value.
Sourcepub fn pop_integer(&mut self) -> i32
pub fn pop_integer(&mut self) -> i32
Pops the top of the stack as an integer value.
Sourcepub fn pop_integer_with_pos(&mut self) -> (i32, LineCol)
pub fn pop_integer_with_pos(&mut self) -> (i32, LineCol)
Pops the top of the stack as an integer value.
Sourcepub fn pop_sep_tag(&mut self) -> ArgSep
pub fn pop_sep_tag(&mut self) -> ArgSep
Pops the top of the stack as a separator tag.
Sourcepub fn pop_string(&mut self) -> String
pub fn pop_string(&mut self) -> String
Pops the top of the stack as a string value.
Sourcepub fn pop_string_with_pos(&mut self) -> (String, LineCol)
pub fn pop_string_with_pos(&mut self) -> (String, LineCol)
Pops the top of the stack as a string value.
Sourcepub fn pop_value_tag(&mut self) -> ValueTag
pub fn pop_value_tag(&mut self) -> ValueTag
Pops the top of the stack as a value tag.
Sourcepub fn pop_varref(&mut self) -> (SymbolKey, ExprType)
pub fn pop_varref(&mut self) -> (SymbolKey, ExprType)
Pops the top of the stack as a variable reference.
Sourcepub fn pop_varref_with_pos(&mut self) -> (SymbolKey, ExprType, LineCol)
pub fn pop_varref_with_pos(&mut self) -> (SymbolKey, ExprType, LineCol)
Pops the top of the stack as a variable reference.
Sourcepub fn return_any(self, value: Value) -> CallResult
pub fn return_any(self, value: Value) -> CallResult
Sets the return value of this function to value
.
Sourcepub fn return_boolean(self, value: bool) -> CallResult
pub fn return_boolean(self, value: bool) -> CallResult
Sets the return value of this function to the boolean value
.
Sourcepub fn return_double(self, value: f64) -> CallResult
pub fn return_double(self, value: f64) -> CallResult
Sets the return value of this function to the double value
.
Sourcepub fn return_integer(self, value: i32) -> CallResult
pub fn return_integer(self, value: i32) -> CallResult
Sets the return value of this function to the integer value
.
Sourcepub fn return_string<S: Into<String>>(self, value: S) -> CallResult
pub fn return_string<S: Into<String>>(self, value: S) -> CallResult
Sets the return value of this function to the string value
.