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

Method ty

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

Retrieve the element type of this `list`.

(&self)

Source from the content-addressed store, hash-verified

334
335 /// Retrieve the element type of this `list`.
336 pub fn ty(&self) -> Type {
337 Type::from(&self.0.types[self.0.index].element, &self.0.instance())
338 }
339}
340
341/// A `map` interface type

Callers

nothing calls this directly

Calls 3

fromFunction · 0.85
instanceMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected