feat(tvix/eval): introduce initial Lambda type

Change-Id: Ifa9766f5ffeff99e926936bafd697e885e733b78
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6238
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
This commit is contained in:
Vincent Ambo 2022-08-23 20:37:00 +03:00 committed by tazjin
parent 3ed40b4eea
commit d57366a6c2
2 changed files with 18 additions and 0 deletions

View file

@ -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>,
}