// Copyright 2022 the Gigamono authors. All rights reserved. GPL-3.0 License. use serde::{Deserialize, Serialize}; #[derive(Debug, Serialize, Deserialize)] pub enum Value { NumVal(NumVal), RefVal(RefVal), VecVal(i128), } #[derive(Debug, Serialize, Deserialize)] pub enum NumVal { I32(i32), I64(i64), F32(f32), F64(f64), } #[derive(Debug, Serialize, Deserialize)] pub enum RefVal { FuncAddr(i32), ExternAddr(i64), }