src/direct_product.rs

branch
dev
changeset 182
71fa6d3df947
parent 171
fa8df5a14486
child 187
76c77e49581a
equal deleted inserted replaced
181:f159287bc191 182:71fa6d3df947
617 fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> { 617 fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> {
618 (self.0, self.1).into_pyobject(py) 618 (self.0, self.1).into_pyobject(py)
619 } 619 }
620 } 620 }
621 621
622 /*
622 impl<'a, 'py, A, B> IntoPyObject<'py> for &'a mut Pair<A, B> 623 impl<'a, 'py, A, B> IntoPyObject<'py> for &'a mut Pair<A, B>
623 where 624 where
624 &'a mut A: IntoPyObject<'py>, 625 &'a mut A: IntoPyObject<'py>,
625 &'a mut B: IntoPyObject<'py>, 626 &'a mut B: IntoPyObject<'py>,
626 { 627 {
644 645
645 fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> { 646 fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> {
646 (&self.0, &self.1).into_pyobject(py) 647 (&self.0, &self.1).into_pyobject(py)
647 } 648 }
648 } 649 }
650 */
649 651
650 impl<'py, A, B> FromPyObject<'py> for Pair<A, B> 652 impl<'py, A, B> FromPyObject<'py> for Pair<A, B>
651 where 653 where
652 A: Clone + FromPyObject<'py>, 654 A: Clone + FromPyObject<'py>,
653 B: Clone + FromPyObject<'py>, 655 B: Clone + FromPyObject<'py>,

mercurial