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

Method len

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

Number of elements.

(&self)

Source from the content-addressed store, hash-verified

61
62 /// Number of elements.
63 pub fn len(&self) -> usize {
64 match self {
65 Self::Owned(v) => v.len(),
66 Self::ZeroCopy { len, .. } => *len,
67 }
68 }
69
70 /// Whether the array is empty.
71 pub fn is_empty(&self) -> bool {

Callers 15

traverse_bfsMethod · 0.45
shortest_pathMethod · 0.45
subgraphMethod · 0.45
partition_countMethod · 0.45
is_emptyMethod · 0.45
compute_statisticsMethod · 0.45
compute_histogramFunction · 0.45
record_accessMethod · 0.45
prefetch_nodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected