MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / len

Method len

crates/data-structures/src/small_map.rs:131–136  ·  view source on GitHub ↗

Returns the number of entries in the map.

(&self)

Source from the content-addressed store, hash-verified

129
130 /// Returns the number of entries in the map.
131 pub fn len(&self) -> usize {
132 match self {
133 Self::Small(list) => list.len(),
134 Self::Large(map) => map.len(),
135 }
136 }
137
138 /// Returns whether the map is empty.
139 pub fn is_empty(&self) -> bool {

Callers 14

from_boxed_uncheckedMethod · 0.45
cloneMethod · 0.45
from_slice_uncheckedMethod · 0.45
from_strFunction · 0.45
__nstrFunction · 0.45
convert_to_largeMethod · 0.45
is_emptyMethod · 0.45
extend_clearFunction · 0.45
insert_get_remove_innerFunction · 0.45
fmtMethod · 0.45
heap_usageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected