From 8190046190dcce2844387729d0dbce6e5248ce41 Mon Sep 17 00:00:00 2001 From: Griffin Smith Date: Sun, 9 Oct 2022 22:11:32 -0400 Subject: feat(tvix/eval): Implement builtins.elem Change-Id: Id99c1d33f87ad9866990d3483d3531e9e48f861f Reviewed-on: https://cl.tvl.fyi/c/depot/+/6916 Autosubmit: grfn Reviewed-by: tazjin Tested-by: BuildkiteCI --- tvix/eval/src/value/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tvix/eval/src/value') diff --git a/tvix/eval/src/value/mod.rs b/tvix/eval/src/value/mod.rs index ea9e173ebc40..d3b981b78cba 100644 --- a/tvix/eval/src/value/mod.rs +++ b/tvix/eval/src/value/mod.rs @@ -359,6 +359,12 @@ impl Display for Value { } } +impl From for Value { + fn from(b: bool) -> Self { + Value::Bool(b) + } +} + impl From for Value { fn from(i: i64) -> Self { Self::Integer(i) -- cgit 1.4.1