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

Method from

crates/vm/src/builtins/mappingproxy.rs:47–51  ·  view source on GitHub ↗
(dict: PyTypeRef)

Source from the content-addressed store, hash-verified

45
46impl From<PyTypeRef> for PyMappingProxy {
47 fn from(dict: PyTypeRef) -> Self {
48 Self {
49 mapping: MappingProxyInner::Class(dict),
50 }
51 }
52}
53
54impl From<PyDictRef> for PyMappingProxy {

Callers

nothing calls this directly

Calls 2

ClassClass · 0.50
MappingClass · 0.50

Tested by

no test coverage detected