Implement IntoPy<PyObject> for BigInts

This commit is contained in:
kngwyu 2019-10-12 15:13:09 +09:00
parent f96595799d
commit 13ccdbee84
1 changed files with 5 additions and 0 deletions

View File

@ -290,6 +290,11 @@ mod bigint_conversion {
}
}
}
impl IntoPy<PyObject> for $rust_ty {
fn into_py(self, py: Python) -> PyObject {
self.to_object(py)
}
}
impl<'source> FromPyObject<'source> for $rust_ty {
fn extract(ob: &'source PyAny) -> PyResult<$rust_ty> {
unsafe {