Add HabitInstanceStoreIdIterator::new
This commit is contained in:
parent
30e05d21f9
commit
3b319fd4f0
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ impl From<StoreIdIterator> for HabitTemplateStoreIdIterator {
|
||||||
|
|
||||||
pub struct HabitInstanceStoreIdIterator(StoreIdIterator);
|
pub struct HabitInstanceStoreIdIterator(StoreIdIterator);
|
||||||
|
|
||||||
|
impl HabitInstanceStoreIdIterator {
|
||||||
|
pub fn new(sid: StoreIdIterator) -> HabitInstanceStoreIdIterator {
|
||||||
|
HabitInstanceStoreIdIterator(sid)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
impl Iterator for HabitInstanceStoreIdIterator {
|
impl Iterator for HabitInstanceStoreIdIterator {
|
||||||
type Item = StoreId;
|
type Item = StoreId;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue