indirect function calls

This commit is contained in:
Svyatoslav Nikolsky
2017-04-26 15:41:22 +03:00
parent 0c794a4e90
commit 7beeb0587a
6 changed files with 107 additions and 23 deletions

View File

@ -63,6 +63,16 @@ impl VariableInstance {
}
}
impl Clone for VariableInstance {
fn clone(&self) -> Self {
VariableInstance {
is_mutable: self.is_mutable,
variable_type: self.variable_type,
value: RwLock::new(self.value.read().clone()),
}
}
}
impl From<ValueType> for VariableType {
fn from(vt: ValueType) -> VariableType {
match vt {