Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ optional_name
Method
optional_name
crates/derive-impl/src/util.rs:292–294 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
290
}
291
292
fn optional_name(&self) -> Option<String> {
293
self.inner()._optional_str(
"name"
).ok().flatten()
294
}
295
296
fn new_meta_error(&self, msg: &str) -> syn::Error {
297
let inner = self.inner();
Callers
1
gen_module_item
Method · 0.80
Implementers
3
pyclass.rs
crates/derive-impl/src/pyclass.rs
util.rs
crates/derive-impl/src/util.rs
pystructseq.rs
crates/derive-impl/src/pystructseq.rs
Calls
4
ok
Method · 0.80
_optional_str
Method · 0.80
flatten
Method · 0.45
inner
Method · 0.45
Tested by
no test coverage detected