Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ has_subscript
Method
has_subscript
crates/vm/src/protocol/mapping.rs:32–34 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
30
31
impl PyMappingSlots {
32
pub fn has_subscript(&self) -> bool {
33
self.subscript.load().is_some()
34
}
35
36
/// Copy from static PyMappingMethods
37
pub fn copy_from(&self, methods: &PyMappingMethods) {
Callers
1
check
Method · 0.80
Calls
1
load
Method · 0.45
Tested by
no test coverage detected