mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-08 05:38:19 +00:00
c-api: Add wasm_*_same functions to global,memory,table
This commit is contained in:
8
lib/api/src/sys/externals/memory.rs
vendored
8
lib/api/src/sys/externals/memory.rs
vendored
@@ -239,6 +239,14 @@ impl Memory {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::cmp::PartialEq for Memory {
|
||||
fn eq(&self, other: &Self) -> bool {
|
||||
self.handle == other.handle
|
||||
}
|
||||
}
|
||||
|
||||
impl std::cmp::Eq for Memory {}
|
||||
|
||||
impl<'a> Exportable<'a> for Memory {
|
||||
fn get_self_from_extern(_extern: &'a Extern) -> Result<&'a Self, ExportError> {
|
||||
match _extern {
|
||||
|
||||
Reference in New Issue
Block a user