(&self)
| 23 | |
| 24 | impl DiffValue { |
| 25 | fn ty(&self) -> DiffValueType { |
| 26 | match self { |
| 27 | DiffValue::I32(_) => DiffValueType::I32, |
| 28 | DiffValue::I64(_) => DiffValueType::I64, |
| 29 | DiffValue::F32(_) => DiffValueType::F32, |
| 30 | DiffValue::F64(_) => DiffValueType::F64, |
| 31 | DiffValue::V128(_) => DiffValueType::V128, |
| 32 | DiffValue::FuncRef { .. } => DiffValueType::FuncRef, |
| 33 | DiffValue::ExternRef { .. } => DiffValueType::ExternRef, |
| 34 | DiffValue::AnyRef { .. } => DiffValueType::AnyRef, |
| 35 | DiffValue::ExnRef { .. } => DiffValueType::ExnRef, |
| 36 | DiffValue::ContRef { .. } => DiffValueType::ContRef, |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | /// Generate a [`DiffValue`] of the given `ty` type. |
| 41 | /// |
no outgoing calls