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

Method is_empty

src/common/priority_queue.rs:65–67  ·  view source on GitHub ↗

Returns true if this priority queue is empty

(&self)

Source from the content-addressed store, hash-verified

63
64 /// Returns true if this priority queue is empty
65 pub fn is_empty(&self) -> bool {
66 self.n == 0
67 }
68
69 /// Returns the number of keys on this priority queue
70 pub fn len(&self) -> usize {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected