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

Method repr_str

crates/stdlib/src/ssl.rs:2191–2193  ·  view source on GitHub ↗
(zelf: &Py<Self>, _vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

2189 impl Representable for PySSLContext {
2190 #[inline]
2191 fn repr_str(zelf: &Py<Self>, _vm: &VirtualMachine) -> PyResult<String> {
2192 Ok(format!("<SSLContext(protocol={})>", zelf.protocol))
2193 }
2194 }
2195
2196 impl Constructor for PySSLContext {

Callers

nothing calls this directly

Calls 5

okMethod · 0.80
to_ownedMethod · 0.45
parseMethod · 0.45
nextMethod · 0.45
as_strMethod · 0.45

Tested by

no test coverage detected