mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
Added equality to instance, Module and Exports
This commit is contained in:
@@ -32,7 +32,7 @@ use wasmer_types::{
|
||||
///
|
||||
/// Until that happens, we annotate the module with the expected
|
||||
/// types so we can built on top of them at runtime.
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, PartialEq, Eq)]
|
||||
pub struct ModuleTypeHints {
|
||||
/// The type hints for the imported types
|
||||
pub imports: Vec<ExternType>,
|
||||
@@ -40,7 +40,7 @@ pub struct ModuleTypeHints {
|
||||
pub exports: Vec<ExternType>,
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
#[derive(Clone, PartialEq, Eq)]
|
||||
pub struct Module {
|
||||
module: WebAssembly::Module,
|
||||
name: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user