MCPcopy Create free account
hub / github.com/RustPython/RustPython / into_setter

Method into_setter

crates/vm/src/function/getset.rs:157–159  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

155pub trait IntoPySetterFunc<T>: PyThreadingConstraint + Sized + 'static {
156 fn set(&self, obj: PyObjectRef, value: PySetterValue, vm: &VirtualMachine) -> PyResult<()>;
157 fn into_setter(self) -> PySetterFunc {
158 Box::new(move |vm, obj, value| self.set(obj, value, vm))
159 }
160}
161
162impl<F, T, V, R> IntoPySetterFunc<(OwnedParam<T>, V, R, VirtualMachine)> for F

Callers 1

with_setMethod · 0.80

Implementers 1

getset.rscrates/vm/src/function/getset.rs

Calls 2

newFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected