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

Method next_key

cranelift/entity/src/primary.rs:134–136  ·  view source on GitHub ↗

Get the key that will be assigned to the next pushed value.

(&self)

Source from the content-addressed store, hash-verified

132
133 /// Get the key that will be assigned to the next pushed value.
134 pub fn next_key(&self) -> K {
135 K::new(self.elems.len())
136 }
137
138 /// Append `v` to the mapping, assigning a new key which is returned.
139 pub fn push(&mut self, v: V) -> K {

Callers 8

add_ssMethod · 0.45
add_dssMethod · 0.45
add_dtMethod · 0.45
add_gvMethod · 0.45
add_sigMethod · 0.45
add_fnMethod · 0.45
append_block_paramMethod · 0.45
pushMethod · 0.45

Calls 2

newFunction · 0.50
lenMethod · 0.45

Tested by

no test coverage detected