(&self, py: Python)
| 53 | /// Empty an existing set of all values. |
| 54 | #[inline] |
| 55 | pub fn clear(&self, py: Python) -> PyResult<()> { |
| 56 | unsafe { err::error_on_minusone(py, ffi::PySet_Clear(self.0.as_ptr())) } |
| 57 | } |
| 58 | |
| 59 | /// Return the number of items in the set |
| 60 | /// This is equivalent to Python `len(self)` |