From d59dca1a2353aa12fb4c1d6745711fb89c22d20f Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Thu, 27 Sep 2018 10:54:16 +0200 Subject: [PATCH] Add StoreIdIterator::with_store() --- lib/core/libimagstore/src/storeid.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/libimagstore/src/storeid.rs b/lib/core/libimagstore/src/storeid.rs index ddb1443e..2f2bf723 100644 --- a/lib/core/libimagstore/src/storeid.rs +++ b/lib/core/libimagstore/src/storeid.rs @@ -266,6 +266,10 @@ impl StoreIdIterator { StoreIdIterator { iter } } + pub fn with_store<'a>(self, store: &'a Store) -> StoreIdIteratorWithStore<'a> { + StoreIdIteratorWithStore(self, store) + } + } impl Iterator for StoreIdIterator {