about summary refs log tree commit diff
path: root/tvix/eval/src/value/mod.rs
diff options
context:
space:
mode:
authorGriffin Smith <root@gws.fyi>2022-10-10T02·11-0400
committerclbot <clbot@tvl.fyi>2022-10-10T17·42+0000
commit8190046190dcce2844387729d0dbce6e5248ce41 (patch)
tree2fe5458f9393bfb0780cd9ee0145e876af052d0d /tvix/eval/src/value/mod.rs
parentb0547ccfa5e74cf21e813cd18f64ef62f1bf3734 (diff)
feat(tvix/eval): Implement builtins.elem r/5080
Change-Id: Id99c1d33f87ad9866990d3483d3531e9e48f861f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6916
Autosubmit: grfn <grfn@gws.fyi>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/eval/src/value/mod.rs')
-rw-r--r--tvix/eval/src/value/mod.rs6
1 files changed, 6 insertions, 0 deletions
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<bool> for Value {
+    fn from(b: bool) -> Self {
+        Value::Bool(b)
+    }
+}
+
 impl From<i64> for Value {
     fn from(i: i64) -> Self {
         Self::Integer(i)