MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / is_empty

Method is_empty

nodedb-bridge/src/buffer.rs:213–215  ·  view source on GitHub ↗

Returns `true` if the queue is empty.

(&self)

Source from the content-addressed store, hash-verified

211
212 /// Returns `true` if the queue is empty.
213 pub fn is_empty(&self) -> bool {
214 self.len() == 0
215 }
216
217 /// Returns the fixed capacity of the ring buffer.
218 pub fn capacity(&self) -> usize {

Callers 1

reap_empty_queuesMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected