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

Method method_name

crates/derive-impl/src/pyclass.rs:1536–1544  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1534 }
1535
1536 fn method_name(&self) -> Result<String> {
1537 let inner = self.inner();
1538 let name = inner._optional_str("name")?;
1539 Ok(if let Some(name) = name {
1540 name
1541 } else {
1542 inner.item_name()
1543 })
1544 }
1545}
1546
1547struct GetSetItemMeta(ItemMetaInner);

Callers 1

gen_impl_itemMethod · 0.45

Calls 3

_optional_strMethod · 0.80
item_nameMethod · 0.80
innerMethod · 0.45

Tested by

no test coverage detected