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

Method check

crates/vm/src/protocol/mapping.rs:113–115  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

111
112 #[inline]
113 pub fn check(&self) -> bool {
114 self.slots().has_subscript()
115 }
116
117 pub fn length_opt(self, vm: &VirtualMachine) -> Option<PyResult<usize>> {
118 self.slots().length.load().map(|f| f(self, vm))

Callers 1

try_mappingMethod · 0.45

Calls 2

has_subscriptMethod · 0.80
slotsMethod · 0.45

Tested by

no test coverage detected