mirror of
https://github.com/fluencelabs/parity-wasm
synced 2025-06-27 05:32:07 +00:00
TableElementType
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
use parking_lot::RwLock;
|
||||
use elements::{GlobalType, ValueType};
|
||||
use elements::{GlobalType, ValueType, TableElementType};
|
||||
use interpreter::Error;
|
||||
use interpreter::value::RuntimeValue;
|
||||
|
||||
@ -98,3 +98,11 @@ impl From<ValueType> for VariableType {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl From<TableElementType> for VariableType {
|
||||
fn from(tt: TableElementType) -> VariableType {
|
||||
match tt {
|
||||
TableElementType::AnyFunc => VariableType::AnyFunc,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user