(
&self,
name: impl Into<String>,
class: &'static Py<PyType>,
f: F,
)
| 691 | } |
| 692 | |
| 693 | pub fn new_readonly_getset<F, T>( |
| 694 | &self, |
| 695 | name: impl Into<String>, |
| 696 | class: &'static Py<PyType>, |
| 697 | f: F, |
| 698 | ) -> PyRef<PyGetSet> |
| 699 | where |
| 700 | F: IntoPyGetterFunc<T>, |
| 701 | { |
| 702 | let name = name.into(); |
| 703 | let getset = PyGetSet::new(name, class).with_get(f); |
| 704 | PyRef::new_ref(getset, self.types.getset_type.to_owned(), None) |
| 705 | } |
| 706 | |
| 707 | pub fn new_static_getset<G, S, T, U>( |
| 708 | &self, |
no test coverage detected