Removes all entries from the heap.
(&mut self)
| 232 | |
| 233 | /// Removes all entries from the heap. |
| 234 | pub(crate) fn clear(&mut self) { |
| 235 | *self = Self::new(self.max_entries); |
| 236 | } |
| 237 | |
| 238 | /// Returns the number of entries in the heap. |
| 239 | pub(crate) fn len(&self) -> usize { |
no outgoing calls