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

Method peek_index

src/common/priority_queue.rs:166–168  ·  view source on GitHub ↗

MinPQ: Returns an index associated with a minimum key MaxPQ: Returns an index associated with a maximum key

(&self)

Source from the content-addressed store, hash-verified

164 /// MinPQ: Returns an index associated with a minimum key
165 /// MaxPQ: Returns an index associated with a maximum key
166 pub fn peek_index(&self) -> Option<&i32> {
167 self.pq.get(1)
168 }
169
170 /// MinPQ: Returns a minimum key
171 /// MaxPQ: Returns a maximum key

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected