import_function

This commit is contained in:
Svyatoslav Nikolsky
2017-05-03 09:09:41 +03:00
parent a39112a940
commit 8f2409d4ab
6 changed files with 54 additions and 3 deletions

View File

@ -54,6 +54,13 @@ pub struct ExportEntry {
}
impl ExportEntry {
/// Create new export entry
pub fn new(field: String, internal: Internal) -> Self {
Self {
field_str: field,
internal: internal,
}
}
/// Public name
pub fn field(&self) -> &str { &self.field_str }
/// Public name (mutable)