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

Method is_empty

nodedb-graph/src/csr/dense_array.rs:71–73  ·  view source on GitHub ↗

Whether the array is empty.

(&self)

Source from the content-addressed store, hash-verified

69
70 /// Whether the array is empty.
71 pub fn is_empty(&self) -> bool {
72 self.len() == 0
73 }
74
75 /// Convert to an owned Vec, copying data if zero-copy.
76 pub fn to_vec(&self) -> Vec<T> {

Callers 6

shortest_pathMethod · 0.45
compute_histogramFunction · 0.45
enable_weightsMethod · 0.45
neighbors_multiMethod · 0.45

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected