mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-05-18 02:01:30 +00:00
add mutable refs
This commit is contained in:
parent
c52ccb7cd3
commit
aeae465b9e
@ -12,6 +12,10 @@ impl GlobalEntry {
|
|||||||
pub fn global_type(&self) -> &GlobalType { &self.global_type }
|
pub fn global_type(&self) -> &GlobalType { &self.global_type }
|
||||||
/// Initialization expression (opcodes) for global.
|
/// Initialization expression (opcodes) for global.
|
||||||
pub fn init_expr(&self) -> &InitExpr { &self.init_expr }
|
pub fn init_expr(&self) -> &InitExpr { &self.init_expr }
|
||||||
|
/// Global type (mutable)
|
||||||
|
pub fn global_type_mut(&mut self) -> &mut GlobalType { &mut self.global_type }
|
||||||
|
/// Initialization expression (opcodes) for global (mutable)
|
||||||
|
pub fn init_expr_mut(&mut self) -> &mut InitExpr { &mut self.init_expr }
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Deserialize for GlobalEntry {
|
impl Deserialize for GlobalEntry {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user