| 128 fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> { |
128 fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> { |
| 129 Bound::new(py, $name { inner: self.clone() }) |
129 Bound::new(py, $name { inner: self.clone() }) |
| 130 } |
130 } |
| 131 } |
131 } |
| 132 |
132 |
| |
133 impl<'a, 'py> IntoPyObject<'py> for &'a DiscreteMeasure<Loc<$N, $F>, $F> { |
| |
134 type Target = $name; |
| |
135 type Error = PyErr; |
| |
136 type Output = Bound<'py, $name>; |
| |
137 |
| |
138 fn into_pyobject(self, py: Python<'py>) -> Result<Self::Output, Self::Error> { |
| |
139 Bound::new(py, $name { inner: self.clone() }) |
| |
140 } |
| |
141 } |
| |
142 |
| 133 impl<'py> IntoPyObject<'py> for DiscreteMeasure<Loc<$N, $F>, $F> { |
143 impl<'py> IntoPyObject<'py> for DiscreteMeasure<Loc<$N, $F>, $F> { |
| 134 type Target = $name; |
144 type Target = $name; |
| 135 type Error = PyErr; |
145 type Error = PyErr; |
| 136 type Output = Bound<'py, $name>; |
146 type Output = Bound<'py, $name>; |
| 137 |
147 |