(&self, a: &PyObject, b: &PyObject)
| 99 | } |
| 100 | |
| 101 | pub fn bool_seq_gt(&self, a: &PyObject, b: &PyObject) -> PyResult<Option<bool>> { |
| 102 | let value = if a.rich_compare_bool(b, PyComparisonOp::Gt, self)? { |
| 103 | Some(true) |
| 104 | } else if !self.bool_eq(a, b)? { |
| 105 | Some(false) |
| 106 | } else { |
| 107 | None |
| 108 | }; |
| 109 | Ok(value) |
| 110 | } |
| 111 | |
| 112 | pub fn length_hint_opt(&self, iter: PyObjectRef) -> PyResult<Option<usize>> { |
| 113 | match iter.length(self) { |
no test coverage detected