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

Method fields

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

Retrieve the fields of this `record` in declaration order.

(&self)

Source from the content-addressed store, hash-verified

386
387 /// Retrieve the fields of this `record` in declaration order.
388 pub fn fields(&self) -> impl ExactSizeIterator<Item = Field<'_>> {
389 self.0.types[self.0.index].fields.iter().map(|field| Field {
390 name: &field.name,
391 ty: Type::from(&field.ty, &self.0.instance()),
392 })
393 }
394}
395
396impl PartialEq for Record {

Callers 2

record_fieldsMethod · 0.45
ensure_type_valFunction · 0.45

Calls 4

fromFunction · 0.85
mapMethod · 0.45
iterMethod · 0.45
instanceMethod · 0.45

Tested by

no test coverage detected