mangle/value.rs
1pub enum Type {
2 Int,
3 String,
4 Stack,
5 Null,
6}
7
8pub struct Value {
9 pub type_: Type,
10 pub value: String,
11}
12
13impl Value {
14 pub fn new(value: String, type_: Type) -> Value {
15 Value { type_, value }
16 }
17
18 pub fn empty() -> Value {
19 Value {
20 value: String::new(),
21 type_: Type::Null,
22 }
23 }
24}