Compare commits

...

1 Commits

Author SHA1 Message Date
NikVolf fdf65737ce deref for not-started module 2018-01-28 12:43:54 +03:00
1 changed files with 8 additions and 0 deletions

View File

@ -603,6 +603,14 @@ pub struct NotStartedModuleRef<'a> {
instance: ModuleRef,
}
impl<'a> ::std::ops::Deref for NotStartedModuleRef<'a> {
type Target = ModuleInstance;
fn deref(&self) -> &ModuleInstance {
&*self.instance
}
}
impl<'a> NotStartedModuleRef<'a> {
pub fn not_started_instance(&self) -> &ModuleRef {
&self.instance