Stream: git-wasmtime

Topic: wasmtime / issue #12193 Add `matches` function to all typ...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 20 2025 at 00:59):

BoilingFusion opened issue #12193:

Feature

Currently there exist FuncType::matches and ValType::matches.

Add matches functions to:

Benefit

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.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 22 2025 at 16:23):

alexcrichton added the wasmtime:api label to Issue #12193.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 22 2025 at 16:23):

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