MCPcopy Create free account
hub / github.com/QMHTMY/RustBook / BinaryHeap

Class BinaryHeap

code/chapter07/binary_heap.rs:26–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24// 二叉堆定义
25#[derive(Debug, Clone)]
26struct BinaryHeap {
27 size: usize, // 数据量
28 data: Vec<i32>, // 数据容器
29}
30
31impl BinaryHeap {
32 fn new() -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected