MCPcopy Index your code
hub / github.com/RustPython/RustPython / split

Method split

crates/compiler-core/src/bytecode/oparg.rs:64–73  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

62 /// the arg for the real opcode itself
63 #[inline(always)]
64 pub fn split(self) -> (impl ExactSizeIterator<Item = OpArgByte>, OpArgByte) {
65 let mut it = self
66 .0
67 .to_le_bytes()
68 .map(OpArgByte)
69 .into_iter()
70 .take(self.instr_size());
71 let lo = it.next().unwrap();
72 (it.rev(), lo)
73 }
74}
75
76impl From<u32> for OpArg {

Callers 6

from_ruff_parse_errorMethod · 0.45
scan_statementMethod · 0.45
compile_statementMethod · 0.45
clean_docFunction · 0.45
finalize_codeMethod · 0.45

Calls 7

instr_sizeMethod · 0.80
takeMethod · 0.45
into_iterMethod · 0.45
mapMethod · 0.45
unwrapMethod · 0.45
nextMethod · 0.45
revMethod · 0.45

Tested by

no test coverage detected