(
name: &'static str,
func: impl PyNativeFn,
flags: PyMethodFlags,
doc: Option<&'static str>,
)
| 89 | |
| 90 | #[inline] |
| 91 | pub const fn new_raw_const( |
| 92 | name: &'static str, |
| 93 | func: impl PyNativeFn, |
| 94 | flags: PyMethodFlags, |
| 95 | doc: Option<&'static str>, |
| 96 | ) -> Self { |
| 97 | Self { |
| 98 | name, |
| 99 | func: super::static_raw_func(func), |
| 100 | flags, |
| 101 | doc, |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | pub fn to_proper_method( |
| 106 | &'static self, |
nothing calls this directly
no test coverage detected