Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[move-cm][closures] Refactor: Move type conversions out of
Loader
i…
…nto a trait Type conversions from runtime types to `MoveTypeLayout` and `TypeTag` currently are associated with the `Loader` type. However, they are needed for the `FunctionValueExtension` trait which needs to be constructed in contexts where no loader but only `ModuleStorage` exists. This PR moves the conversion functions into a new trait `TypeConverter`. The trait is then implemented two times based on `ModuleStorage` only and based on the existing `Loader`, for downwards compatibility.
- Loading branch information