nyar_wasm/wasi_values/array/
mod.rs1use super::*;
2use crate::Identifier;
3
4#[derive(Debug, Clone, Hash)]
6pub struct ArrayValue {
7 pub r#type: WasiArrayType,
9 pub values: Vec<WasiValue>,
11}
12
13#[derive(Debug, Clone)]
14pub struct ArrayData {
15 pub symbol: Identifier,
16 pub values: Vec<u8>,
17}
18
19impl ToWasiType for ArrayValue {
20 fn to_wasi_type(&self) -> WasiType {
21 WasiType::Array(Box::new(self.r#type.clone()))
22 }
23}
24
25impl EmitConstant for ArrayValue {
26 fn emit_constant<W: Write>(&self, w: &mut WastEncoder<W>) -> std::fmt::Result {
27 todo!()
28 }
29}