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

Method get_ref

core/src/callable.rs:983–987  ·  view source on GitHub ↗

Gets an immutable register reference from the argument at `arg`.

(&self, arg: u8)

Source from the content-addressed store, hash-verified

981
982 /// Gets an immutable register reference from the argument at `arg`.
983 pub fn get_ref(&self, arg: u8) -> RegisterRef<'_, 'a> {
984 let tagged_ptr = self.regs[self.fp + self.arg_offset + (arg as usize)];
985 let (index, vtype) = TaggedRegisterRef::from_u64(tagged_ptr).parse();
986 RegisterRef { scope: self, index, vtype }
987 }
988
989 /// Gets a mutable register reference from the argument at `arg`.
990 pub fn get_mut_ref(&mut self, arg: u8) -> RegisterRefMut<'_, 'a> {

Callers 8

execMethod · 0.80
format_varargFunction · 0.80
execMethod · 0.80
execMethod · 0.80
parse_bound_argsFunction · 0.80
assign_datumMethod · 0.80
execMethod · 0.80

Calls 1

parseMethod · 0.45

Tested by 4

execMethod · 0.64
format_varargFunction · 0.64
execMethod · 0.64
execMethod · 0.64