MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / len

Method len

cranelift/entity/src/sparse.rs:84–86  ·  view source on GitHub ↗

Returns the number of elements in the map.

(&self)

Source from the content-addressed store, hash-verified

82
83 /// Returns the number of elements in the map.
84 pub fn len(&self) -> usize {
85 self.dense.len()
86 }
87
88 /// Returns true is the map contains no elements.
89 pub fn is_empty(&self) -> bool {

Callers 2

insertMethod · 0.45
removeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected