mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-25 20:51:54 +00:00
import_function
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user