(self, rust_method, args, docs='', result=False)
| 135 | self.pyextra_ = [] |
| 136 | |
| 137 | def constructor(self, rust_method, args, docs='', result=False): |
| 138 | method = f'{self.module}::{self.name}::{rust_method}' |
| 139 | ret = self.type.result() if result else self.type |
| 140 | |
| 141 | self.constructor_ = Function( |
| 142 | ret, |
| 143 | f'new_{self.c_name}', |
| 144 | args, |
| 145 | make_safe_call(ret, method, args), |
| 146 | docs=docs |
| 147 | ) |
| 148 | |
| 149 | return self |
| 150 | |
| 151 | def pyextra(self, value): |
| 152 | self.pyextra_.append(value) |
no test coverage detected