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

Method _has_key

crates/derive-impl/src/util.rs:219–221  ·  view source on GitHub ↗
(&self, key: &str)

Source from the content-addressed store, hash-verified

217 }
218
219 pub fn _has_key(&self, key: &str) -> Result<bool> {
220 Ok(matches!(self.meta_map.get(key), Some((_, _))))
221 }
222
223 pub fn _bool(&self, key: &str) -> Result<bool> {
224 let value = if let Some((_, meta)) = self.meta_map.get(key) {

Callers 1

impl_pyclassFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected