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

Method slot_name

crates/vm/src/builtins/type.rs:1173–1183  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1171 }
1172
1173 pub fn slot_name(&self) -> BorrowedValue<'_, str> {
1174 self.name_inner(
1175 |name| name.into(),
1176 |ext| {
1177 PyRwLockReadGuard::map(ext.name.read(), |name: &PyUtf8StrRef| -> &str {
1178 name.as_str()
1179 })
1180 .into()
1181 },
1182 )
1183 }
1184
1185 pub fn name(&self) -> BorrowedValue<'_, str> {
1186 self.name_inner(

Callers 6

__build_class__Function · 0.45
slot_reprMethod · 0.45
reprMethod · 0.45
repr_strMethod · 0.45
repr_wtf8Method · 0.45
__module__Method · 0.45

Calls 3

name_innerMethod · 0.80
readMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected