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

Method interned_str

crates/vm/src/vm/context.rs:447–452  ·  view source on GitHub ↗
(
        &self,
        s: &S,
    )

Source from the content-addressed store, hash-verified

445 }
446
447 pub fn interned_str<S: MaybeInternedString + ?Sized>(
448 &self,
449 s: &S,
450 ) -> Option<&'static PyStrInterned> {
451 self.string_pool.interned(s)
452 }
453
454 #[inline(always)]
455 pub fn none(&self) -> PyObjectRef {

Callers 14

try_from_objectMethod · 0.80
as_interned_strMethod · 0.80
generic_setattrMethod · 0.80
generic_getattr_optMethod · 0.80
getattroMethod · 0.80
lookup_refMethod · 0.80
__name__Method · 0.80
getattroMethod · 0.80
getattroMethod · 0.80
newMethod · 0.80
get_str_methodMethod · 0.80
call_methodMethod · 0.80

Calls 1

internedMethod · 0.80

Tested by

no test coverage detected