Expose some more internals publicly (#340)
This commit is contained in:
committed by
Sergei Pepyakin
parent
f27e0ad53c
commit
71dd73d672
@@ -223,6 +223,16 @@ impl CompiledModule {
|
||||
Box::new(()),
|
||||
)
|
||||
}
|
||||
|
||||
/// Return a reference-counting pointer to a module.
|
||||
pub fn module(&self) -> Rc<Module> {
|
||||
self.module.clone()
|
||||
}
|
||||
|
||||
/// Return a reference to a module.
|
||||
pub fn module_ref(&self) -> &Module {
|
||||
&self.module
|
||||
}
|
||||
}
|
||||
|
||||
/// Similar to `DataInitializer`, but owns its own copy of the data rather
|
||||
|
||||
Reference in New Issue
Block a user