Convert usages of Instance::{func,dyn_func} to exports.get

This commit is contained in:
Mark McCaskey
2020-03-26 18:13:45 -07:00
parent 2fb8f8197b
commit 3eff8c1973
11 changed files with 24 additions and 17 deletions

View File

@ -934,6 +934,10 @@ pub struct Exports {
module: Arc<ModuleInner>,
}
// this is safe because the lifetime of `Exports` is tied to `Instance` and
// `*const InstanceInner` comes from a `Pin<Box<InstanceInner>>`
unsafe impl Send for Exports {}
impl Exports {
/// Get an export.
///