BoilingFusion opened issue #12193:
Feature
Currently there exist
FuncType::matchesandValType::matches.Add
matchesfunctions to:
ExternTypeGlobalTypeTableTypeTagTypeBenefit
Quickly checking if a type conforms to an interface.
Asking this in relation to this wasmi pull request to know if there are any plans on implementing functions like this.Implementation
I think it should be possible to compare all fields for either equality or to use the matches functions that are already written.
Alternatives
These functions do not have to be written in this crate. They can also be added by users of the library if necessary.
alexcrichton added the wasmtime:api label to Issue #12193.
alexcrichton commented on issue #12193:
Seems reasonable to me to add yeah, happy to review PRs!
Last updated: Jan 09 2026 at 13:15 UTC