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

Method from

crates/wasmtime/src/runtime/component/types.rs:331–333  ·  view source on GitHub ↗
(index: TypeListIndex, ty: &InstanceType<'_>)

Source from the content-addressed store, hash-verified

329
330impl List {
331 pub(crate) fn from(index: TypeListIndex, ty: &InstanceType<'_>) -> Self {
332 List(Handle::new(index, ty))
333 }
334
335 /// Retrieve the element type of this `list`.
336 pub fn ty(&self) -> Type {

Callers

nothing calls this directly

Calls 15

EnumClass · 0.85
fromFunction · 0.85
ResultClass · 0.85
ComponentFuncClass · 0.85
future_typeMethod · 0.80
stream_typeMethod · 0.80
panic_on_oomMethod · 0.80
ListClass · 0.70
MapClass · 0.70
RecordClass · 0.70
TupleClass · 0.70
VariantClass · 0.70

Tested by

no test coverage detected