Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ len
Method
len
nodedb/src/engine/random/alias.rs:142–144 ·
view source on GitHub ↗
Number of items in the distribution.
(&self)
Source
from the content-addressed store, hash-verified
140
141
/// Number of items in the distribution.
142
pub fn len(&self) -> usize {
143
self.n
144
}
145
146
/// Whether the table is empty.
147
pub fn is_empty(&self) -> bool {
Callers
15
new
Method · 0.45
sample_without_replacement
Method · 0.45
dim_count
Method · 0.45
total_postings
Method · 0.45
from_checkpoint
Method · 0.45
dot_product_topk
Function · 0.45
dlq_len
Method · 0.45
doc_id_to_surrogate
Function · 0.45
base64_encode
Function · 0.45
open
Method · 0.45
replace_segments
Method · 0.45
entry_count
Method · 0.45
Calls
no outgoing calls
Tested by
2
materialise_persists_tombstone_and_erasure_kinds
Function · 0.36
plan_groups_versions_by_prefix_across_segments
Function · 0.36