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

Method with_get

crates/vm/src/builtins/getset.rs:82–88  ·  view source on GitHub ↗
(mut self, getter: G)

Source from the content-addressed store, hash-verified

80 }
81
82 pub fn with_get<G, X>(mut self, getter: G) -> Self
83 where
84 G: IntoPyGetterFunc<X>,
85 {
86 self.getter = Some(getter.into_getter());
87 self
88 }
89
90 pub fn with_set<S, X>(mut self, setter: S) -> Self
91 where

Callers 2

new_readonly_getsetMethod · 0.80
new_static_getsetMethod · 0.80

Calls 2

into_getterMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected