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

Function peek

crates/vm/src/builtins/frame.rs:76–79  ·  view source on GitHub ↗
(stack: i64, n: u32)

Source from the content-addressed store, hash-verified

74 }
75
76 fn peek(stack: i64, n: u32) -> i64 {
77 debug_assert!(n >= 1);
78 (stack >> (BITS_PER_BLOCK * (n - 1))) & MASK
79 }
80
81 fn stack_swap(stack: i64, n: u32) -> i64 {
82 debug_assert!(n >= 1);

Callers 3

peek_charMethod · 0.85
stack_swapFunction · 0.85
mark_stacksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected