(
&self,
other: &Self,
op_id: PyComparisonOp,
vm: &VirtualMachine,
)
| 343 | } |
| 344 | #[inline(always)] |
| 345 | pub fn rich_compare_bool( |
| 346 | &self, |
| 347 | other: &Self, |
| 348 | op_id: PyComparisonOp, |
| 349 | vm: &VirtualMachine, |
| 350 | ) -> PyResult<bool> { |
| 351 | match self._cmp(other, op_id, vm)? { |
| 352 | Either::A(obj) => obj.try_to_bool(vm), |
| 353 | Either::B(other) => Ok(other), |
| 354 | } |
| 355 | } |
| 356 | |
| 357 | pub fn repr_utf8(&self, vm: &VirtualMachine) -> PyResult<PyRef<PyUtf8Str>> { |
| 358 | self.repr(vm)?.try_into_utf8(vm) |
no test coverage detected