Skip to main content

envl_utils/
variable.rs

1use std::collections::HashMap;
2
3#[derive(Debug, Clone, PartialEq)]
4pub enum Value {
5    Null,
6    String(String),
7    Char(char),
8    Float(f64),
9    Int(i64),
10    Uint(u64),
11    Bool(bool),
12    Array(Vec<Value>),
13    Struct(HashMap<String, Value>),
14}
15
16#[derive(Debug, Clone, PartialEq)]
17pub enum Type {
18    Null,
19    String,
20    Char,
21    Float,
22    Int,
23    Uint,
24    Bool,
25    Array(Box<Type>),
26    Struct(HashMap<String, Type>),
27    Option(Box<Type>),
28}