add example

This commit is contained in:
NikVolf
2019-01-24 16:21:52 +03:00
parent ad83ad17ee
commit 5b2cd9c4c6
3 changed files with 31 additions and 2 deletions
+2 -1
View File
@@ -410,7 +410,8 @@ impl Module {
Ok(res)
}
fn generate(&self) -> Result<elements::Module, Error> {
/// Generate raw format representation.
pub fn generate(&self) -> Result<elements::Module, Error> {
use self::ImportedOrDeclared::*;
let mut idx = 0;