add module resolving to program instance

This commit is contained in:
NikVolf
2017-05-12 20:45:58 +03:00
parent 53659c8b35
commit 74d5f152bf

View File

@ -39,6 +39,11 @@ impl ProgramInstance {
},
}
}
/// Get one of the modules by name
pub fn module(&self, name: &str) -> Option<Arc<ModuleInstanceInterface>> {
self.essence.module(name)
}
}
impl ProgramInstanceEssence {