MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / build_set

Method build_set

compiler/src/modules/vm/builtins/container.rs:69–73  ·  view source on GitHub ↗
(&mut self, op: u16)

Source from the content-addressed store, hash-verified

67 }
68
69 pub fn build_set(&mut self, op: u16) -> Result<(), VmErr> {
70 let items = self.pop_n(op as usize)?;
71 let val = self.set_from_items(items)?;
72 self.push(val); Ok(())
73 }
74
75 pub fn build_slice(&mut self, op: u16) -> Result<(), VmErr> {
76 let step = if op == 3 { self.pop()? } else { Val::none() };

Callers 1

handle_buildMethod · 0.80

Calls 3

pop_nMethod · 0.80
set_from_itemsMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected