MCPcopy Index your code
hub / github.com/endbasic/endbasic / clear

Method clear

core/src/mem.rs:234–236  ·  view source on GitHub ↗

Removes all entries from the heap.

(&mut self)

Source from the content-addressed store, hash-verified

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 {

Callers 2

regenerateFunction · 0.45

Calls

no outgoing calls

Tested by 2

regenerateFunction · 0.36