about summary refs log tree commit diff
path: root/tvix/eval/src/value/lambda.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tvix/eval/src/value/lambda.rs')
-rw-r--r--tvix/eval/src/value/lambda.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tvix/eval/src/value/lambda.rs b/tvix/eval/src/value/lambda.rs
new file mode 100644
index 000000000000..2cecb4f5373b
--- /dev/null
+++ b/tvix/eval/src/value/lambda.rs
@@ -0,0 +1,12 @@
+//! This module implements the runtime representation of functions.
+use std::rc::Rc;
+
+use crate::chunk::Chunk;
+
+use super::NixString;
+
+#[derive(Clone, Debug)]
+pub struct Lambda {
+    name: Option<NixString>,
+    chunk: Rc<Chunk>,
+}