continue env module implementation

This commit is contained in:
Svyatoslav Nikolsky
2017-05-04 19:09:43 +03:00
parent 9a5ed312ec
commit 3c7ee09f8e
8 changed files with 119 additions and 33 deletions

View File

@ -2,7 +2,7 @@ use std::io;
use super::{Deserialize, Serialize, Error, VarUint7, VarUint32};
/// Internal reference of the exported entry.
#[derive(Clone, Copy)]
#[derive(Debug, Clone, Copy)]
pub enum Internal {
/// Function reference.
Function(u32),
@ -48,6 +48,7 @@ impl Serialize for Internal {
}
/// Export entry.
#[derive(Debug)]
pub struct ExportEntry {
field_str: String,
internal: Internal,