From 8cb3046e0920bf24d66c578b1a2b184c741b73fe Mon Sep 17 00:00:00 2001 From: Nadrieril Date: Tue, 7 May 2019 18:23:07 +0200 Subject: Move AlphaVar and AlphaLabel into a new module --- dhall/src/core/var.rs | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 103 insertions(+) create mode 100644 dhall/src/core/var.rs (limited to 'dhall/src/core/var.rs') diff --git a/dhall/src/core/var.rs b/dhall/src/core/var.rs new file mode 100644 index 0000000..e431fc2 --- /dev/null +++ b/dhall/src/core/var.rs @@ -0,0 +1,103 @@ +use dhall_syntax::{Label, V}; + +/// Stores a pair of variables: a normal one and if relevant one +/// that corresponds to the alpha-normalized version of the first one. +/// Equality is up to alpha-equivalence. +#[derive(Debug, Clone, Eq)] +pub(crate) struct AlphaVar { + normal: V