Make conversions to `wasmtime::Result` postfix-friendly (#10082)

This PR refactors the conversions to `wasmtime::Result` to use a trait
so that we can perform the conversions in a postfix-friendly way.

Release Notes:

- N/A
a1cb6772bfMarshall Bowers committed on 4/2/2024, 3:38:15 PM· committed by GitHubparentc62239e
2 files changedLine totals unavailable