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

Method fields

crates/wasmtime/src/runtime/types.rs:1981–1987  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1979 /// Returns the list of field types for this function.
1980 #[inline]
1981 pub fn fields(&self) -> impl ExactSizeIterator<Item = FieldType> + '_ {
1982 let engine = self.engine();
1983 self.as_wasm_struct_type()
1984 .fields
1985 .iter()
1986 .map(|ty| FieldType::from_wasm_field_type(engine, ty))
1987 }
1988
1989 /// Does this struct type match the other struct type?
1990 ///

Callers 13

basic_struct_typesFunction · 0.45
struct_fields_emptyFunction · 0.45
struct_fields_non_emptyFunction · 0.45
structref_fieldsFunction · 0.45
introspectionFunction · 0.45
exnref_get_fieldsMethod · 0.45
fmtMethod · 0.45
arbitrary_valFunction · 0.45

Calls 5

as_wasm_struct_typeMethod · 0.80
as_wasm_exn_typeMethod · 0.80
engineMethod · 0.45
mapMethod · 0.45
iterMethod · 0.45

Tested by 5

basic_struct_typesFunction · 0.36
struct_fields_emptyFunction · 0.36
struct_fields_non_emptyFunction · 0.36
structref_fieldsFunction · 0.36
introspectionFunction · 0.36