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

Method clear

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

Clears all entries from the map.

(&mut self)

Source from the content-addressed store, hash-verified

121
122 /// Clears all entries from the map.
123 pub fn clear(&mut self) {
124 match self {
125 Self::Small(list) => list.clear(),
126 Self::Large(map) => map.clear(),
127 }
128 }
129
130 /// Returns the number of entries in the map.
131 pub fn len(&self) -> usize {

Callers

nothing calls this directly

Calls 1

clearMethod · 0.65

Tested by

no test coverage detected