Removes and returns the highest-index entity from the set if it exists.
(&mut self)
| 172 | |
| 173 | /// Removes and returns the highest-index entity from the set if it exists. |
| 174 | pub fn pop(&mut self) -> Option<K> { |
| 175 | let index = self.bitset.pop()?; |
| 176 | Some(K::new(index)) |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | /// An iterator over the elements in an `EntitySet`. |