export entry expose mutable, also some precomipled tests

This commit is contained in:
NikVolf
2017-04-20 17:31:10 +03:00
parent c578aa18d2
commit a39db7182f
3 changed files with 2452 additions and 0 deletions

View File

@ -55,8 +55,12 @@ pub struct ExportEntry {
impl ExportEntry {
/// Public name
pub fn field(&self) -> &str { &self.field_str }
/// Public name (mutable)
pub fn field_mut(&mut self) -> &mut str { &mut self.field_str }
/// Internal reference of the export entry.
pub fn internal(&self) -> &Internal { &self.internal }
/// Internal reference of the export entry (mutable).
pub fn internal_mut(&mut self) -> &mut Internal { &mut self.internal }
}
impl Deserialize for ExportEntry {