MCPcopy Create free account
hub / github.com/RustPython/RustPython / capacity

Method capacity

crates/vm/src/frame.rs:249–254  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

247 /// Total capacity (fastlocals + stack).
248 #[inline(always)]
249 fn capacity(&self) -> usize {
250 match &self.data {
251 LocalsPlusData::Heap(b) => b.len(),
252 LocalsPlusData::DataStack { capacity, .. } => *capacity,
253 }
254 }
255
256 /// Stack capacity (max stack depth).
257 #[inline(always)]

Callers 2

stack_capacityMethod · 0.45
stack_try_pushMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected