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

Method has_feature

crates/vm/src/types/slot.rs:254–256  ·  view source on GitHub ↗
(self, flag: Self)

Source from the content-addressed store, hash-verified

252 }
253
254 pub const fn has_feature(self, flag: Self) -> bool {
255 self.contains(flag)
256 }
257
258 #[cfg(debug_assertions)]
259 pub const fn is_created_with_flags(self) -> bool {

Callers 15

extend_classMethod · 0.80
execute_instructionMethod · 0.80
specialize_load_attrMethod · 0.80
specialize_binary_opMethod · 0.80
specialize_callMethod · 0.80
specialize_to_boolMethod · 0.80
_clear_type_descriptorsFunction · 0.80
generic_allocFunction · 0.80
object_getstate_defaultFunction · 0.80
set___class__Method · 0.80
new_heap_innerMethod · 0.80

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected