TableElementType

This commit is contained in:
Svyatoslav Nikolsky
2017-06-21 11:35:09 +03:00
parent 4eb04d2732
commit 08c8bf330e
6 changed files with 70 additions and 23 deletions

View File

@ -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,
}
}
}