MCPcopy Index your code
hub / github.com/endbasic/endbasic / get_string

Method get_string

core/src/callable.rs:997–1001  ·  view source on GitHub ↗

Gets the string value of the argument at `arg`.

(&self, arg: u8)

Source from the content-addressed store, hash-verified

995
996 /// Gets the string value of the argument at `arg`.
997 pub fn get_string(&self, arg: u8) -> &str {
998 let index = self.regs[self.fp + self.arg_offset + (arg as usize)];
999 let ptr = DatumPtr::from(index);
1000 ptr.resolve_string(self.constants, self.heap)
1001 }
1002
1003 /// Returns the last error stored in the VM, if any.
1004 pub fn last_error(&self) -> Option<(LineCol, &str)> {

Callers 14

async_execMethod · 0.80
execMethod · 0.80
execMethod · 0.80
format_argFunction · 0.80
execMethod · 0.80
execMethod · 0.80
async_execMethod · 0.80
async_execMethod · 0.80
execMethod · 0.80
async_execMethod · 0.80
execMethod · 0.80
parse_pin_modeFunction · 0.80

Calls 1

resolve_stringMethod · 0.80

Tested by 5

execMethod · 0.64
execMethod · 0.64
format_argFunction · 0.64
execMethod · 0.64
execMethod · 0.64