feat(api) Rename Extern::from_export to …::from_vm_export.

I hope this little change will clarify a little bit that the `Export`
passed to `Extern::from_vm_export` is not a `wasmer::Export` but a
`wasmer_vm::Export`.
This commit is contained in:
Ivan Enderlin
2020-11-19 11:01:56 +01:00
parent 8e7d7efb40
commit ca89bd5d75
9 changed files with 15 additions and 15 deletions

View File

@@ -43,13 +43,13 @@ impl Extern {
}
}
/// Create an `Extern` from an `Export`.
pub fn from_export(store: &Store, export: Export) -> Self {
/// Create an `Extern` from an `wasmer_vm::Export`.
pub fn from_vm_export(store: &Store, export: Export) -> Self {
match export {
Export::Function(f) => Self::Function(Function::from_export(store, f)),
Export::Memory(m) => Self::Memory(Memory::from_export(store, m)),
Export::Global(g) => Self::Global(Global::from_export(store, g)),
Export::Table(t) => Self::Table(Table::from_export(store, t)),
Export::Function(f) => Self::Function(Function::from_vm_export(store, f)),
Export::Memory(m) => Self::Memory(Memory::from_vm_export(store, m)),
Export::Global(g) => Self::Global(Global::from_vm_export(store, g)),
Export::Table(t) => Self::Table(Table::from_vm_export(store, t)),
}
}
}