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

Method key

crates/wasmtime/src/runtime/component/types.rs:359–361  ·  view source on GitHub ↗

Retrieve the key type of this `map`.

(&self)

Source from the content-addressed store, hash-verified

357
358 /// Retrieve the key type of this `map`.
359 pub fn key(&self) -> Type {
360 Type::from(&self.0.types[self.0.index].key, &self.0.instance())
361 }
362
363 /// Retrieve the value type of this `map`.
364 pub fn value(&self) -> Type {

Callers

nothing calls this directly

Calls 2

fromFunction · 0.85
instanceMethod · 0.45

Tested by

no test coverage detected