(self)
| 44 | /// This method panics if the collection does not have exactly one element. |
| 45 | #[track_caller] |
| 46 | fn into_element(self) -> T::Item { |
| 47 | self.expect_element(|| "into_element called on collection without exactly one element") |
| 48 | } |
| 49 | |
| 50 | /// Consumes the collection and returns its only element. |
| 51 | /// |