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

Method get_mut_ref

core/src/callable.rs:990–994  ·  view source on GitHub ↗

Gets a mutable register reference from the argument at `arg`.

(&mut self, arg: u8)

Source from the content-addressed store, hash-verified

988
989 /// Gets a mutable register reference from the argument at `arg`.
990 pub fn get_mut_ref(&mut self, arg: u8) -> RegisterRefMut<'_, 'a> {
991 let tagged_ptr = self.regs[self.fp + self.arg_offset + (arg as usize)];
992 let (index, vtype) = TaggedRegisterRef::from_u64(tagged_ptr).parse();
993 RegisterRefMut { scope: self, index, vtype }
994 }
995
996 /// Gets the string value of the argument at `arg`.
997 pub fn get_string(&self, arg: u8) -> &str {

Callers 4

execMethod · 0.80
execMethod · 0.80
assign_datumMethod · 0.80
async_execMethod · 0.80

Calls 1

parseMethod · 0.45

Tested by 2

execMethod · 0.64
execMethod · 0.64