From 9744f12a9f0a829b57aa75fef11ba45a4db3c8df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Sun, 13 Sep 2020 16:57:54 +0200 Subject: [PATCH] Implement the array run is_subset operation --- src/bitmap/store.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/bitmap/store.rs b/src/bitmap/store.rs index ad628596..949aff54 100644 --- a/src/bitmap/store.rs +++ b/src/bitmap/store.rs @@ -324,8 +324,7 @@ impl Store { } } (&Array(ref vec), store @ &Bitmap(..)) => vec.iter().all(|&i| store.contains(i)), - // TODO(jpg) is_subset array, run - (&Array(ref _vec), &Run(ref _intervals)) => unimplemented!(), + (&Array(ref vec), run @ &Run(..)) => vec.iter().all(|&i| run.contains(i)), (&Bitmap(ref bits1), &Bitmap(ref bits2)) => bits1 .iter()