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

Method with_set

crates/vm/src/builtins/getset.rs:90–96  ·  view source on GitHub ↗
(mut self, setter: S)

Source from the content-addressed store, hash-verified

88 }
89
90 pub fn with_set<S, X>(mut self, setter: S) -> Self
91 where
92 S: IntoPySetterFunc<X>,
93 {
94 self.setter = Some(setter.into_setter());
95 self
96 }
97}
98
99#[pyclass(flags(DISALLOW_INSTANTIATION), with(GetDescriptor, Representable))]

Callers 1

new_static_getsetMethod · 0.80

Calls 2

into_setterMethod · 0.80
SomeClass · 0.50

Tested by

no test coverage detected