Returns True if the matching is not empty
(&self)
| 40 | |
| 41 | /// Returns True if the matching is not empty |
| 42 | fn __bool__(&self) -> bool { |
| 43 | !self.inner.is_empty() |
| 44 | } |
| 45 | |
| 46 | fn __iter__(&self) -> PyBorrowingIterator { |
| 47 | py_borrowing_iter!(self.inner.clone(), Matching<DynamicGraph>, |inner| inner |