1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! Definition related to variables.
use crateToPrettyString;
/// Type definition for a variable index. The variable index is just `usize`, but the separate name makes it easier to identify what a variable is.
pub type VarIdx = usize;
/// Generic variable trait to represent a variable with potentially arbitrary names.
///
/// High-level properties of a variable:
/// - is either unassigned (`None`) or assigned (`Some(v)`, where `v` could be something like True, False, integer, float, ...)
///