mirror of
https://github.com/fluencelabs/wasmer
synced 2025-05-03 22:32:14 +00:00
As @MarkMcCaskey noted, `Type` can be corrupted because `field_names` and `field_types` must have the same length. This patch removes the public visibility, and adds methods like `new`, `add_field`, `field_names` and `field_types` to encapsulate `Type` internal data.