universal pyref constructor
(&self, value: T)
| 469 | |
| 470 | // universal pyref constructor |
| 471 | pub fn new_pyref<T, P>(&self, value: T) -> PyRef<P> |
| 472 | where |
| 473 | T: Into<P>, |
| 474 | P: PyPayload + core::fmt::Debug, |
| 475 | { |
| 476 | value.into().into_ref(self) |
| 477 | } |
| 478 | |
| 479 | // shortcuts for common type |
| 480 |
no test coverage detected