i think you can successfully type the return type using a Union. This might have the performance penalty of instability, but i care more about the soundness issue of potentially returning garbage types than about e.g. vtables
btw rust-miniscript is a nice example of a type stable parser :)
btw rust-miniscript is a nice example of a type stable parser :)