From 36770abac5f9814549af80888c6a298db1b4a2d0 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 24 Jan 2016 12:17:25 +0100 Subject: [PATCH] Add iterator type for StoreId --- libimagstore/src/storeid.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/libimagstore/src/storeid.rs b/libimagstore/src/storeid.rs index cc826585..b28b13fc 100644 --- a/libimagstore/src/storeid.rs +++ b/libimagstore/src/storeid.rs @@ -1,4 +1,5 @@ use std::path::PathBuf; +use glob::GlobResult; /// The Index into the Store pub type StoreId = PathBuf; @@ -63,6 +64,29 @@ macro_rules! module_entry_path_mod { ) } +struct StoreIdIterator { + globres: GlobResult, +} + +impl StoreIdIterator { + + pub fn new(globres: GlobResult) -> StoreIdIterator { + StoreIdIterator { + globres: globres, + } + } + +} + +impl Iterator for StoreIdIterator { + type Item = StoreId; + + fn next(&mut self) -> Option { + unimplemented!() + } + +} + #[cfg(test)] mod test {