From 3b319fd4f024bdf915f5ae51758699cfcf426daf Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 3 Dec 2017 21:05:41 +0100 Subject: [PATCH] Add HabitInstanceStoreIdIterator::new --- lib/domain/libimaghabit/src/iter.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/domain/libimaghabit/src/iter.rs b/lib/domain/libimaghabit/src/iter.rs index 416cbe66..4fcf7f14 100644 --- a/lib/domain/libimaghabit/src/iter.rs +++ b/lib/domain/libimaghabit/src/iter.rs @@ -53,6 +53,12 @@ impl From for HabitTemplateStoreIdIterator { pub struct HabitInstanceStoreIdIterator(StoreIdIterator); +impl HabitInstanceStoreIdIterator { + pub fn new(sid: StoreIdIterator) -> HabitInstanceStoreIdIterator { + HabitInstanceStoreIdIterator(sid) + } +} + impl Iterator for HabitInstanceStoreIdIterator { type Item = StoreId;