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

Function get_signature

crates/vm/src/builtins/type.rs:2264–2266  ·  view source on GitHub ↗
(doc: &str)

Source from the content-addressed store, hash-verified

2262
2263const SIGNATURE_END_MARKER: &str = ")\n--\n\n";
2264fn get_signature(doc: &str) -> Option<&str> {
2265 doc.find(SIGNATURE_END_MARKER).map(|index| &doc[..=index])
2266}
2267
2268fn find_signature<'a>(name: &str, doc: &'a str) -> Option<&'a str> {
2269 let name = name.rsplit('.').next().unwrap();

Callers

nothing calls this directly

Calls 2

mapMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected