MCPcopy Create free account
hub / github.com/douchuan/algorithm / new

Method new

src/common/max_heap.rs:25–28  ·  view source on GitHub ↗
(mut keys: Vec<K>)

Source from the content-addressed store, hash-verified

23 K: Ord,
24{
25 pub fn new(mut keys: Vec<K>) -> Self {
26 build_heap(&mut keys);
27 Self { keys }
28 }
29
30 pub fn pop(&mut self) -> Option<K> {
31 let len = self.keys.len();

Callers

nothing calls this directly

Calls 1

build_heapFunction · 0.70

Tested by

no test coverage detected