diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2017-12-03 21:05:41 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2017-12-08 14:54:49 +0100 |
commit | 3b319fd4f024bdf915f5ae51758699cfcf426daf (patch) | |
tree | 1edd607215ed89441686494b221bd103d99875b5 /lib/domain/libimaghabit/src/iter.rs | |
parent | 30e05d21f9c064afa7ba88da206cc26bb66bd2e2 (diff) |
Add HabitInstanceStoreIdIterator::new
Diffstat (limited to 'lib/domain/libimaghabit/src/iter.rs')
-rw-r--r-- | lib/domain/libimaghabit/src/iter.rs | 6 |
1 files changed, 6 insertions, 0 deletions
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<StoreIdIterator> for HabitTemplateStoreIdIterator { pub struct HabitInstanceStoreIdIterator(StoreIdIterator); +impl HabitInstanceStoreIdIterator { + pub fn new(sid: StoreIdIterator) -> HabitInstanceStoreIdIterator { + HabitInstanceStoreIdIterator(sid) + } +} + impl Iterator for HabitInstanceStoreIdIterator { type Item = StoreId; |