Add iterator type for StoreId

This commit is contained in:
Matthias Beyer 2016-01-24 12:17:25 +01:00
parent e951666e3d
commit 36770abac5

View file

@ -1,4 +1,5 @@
use std::path::PathBuf; use std::path::PathBuf;
use glob::GlobResult;
/// The Index into the Store /// The Index into the Store
pub type StoreId = PathBuf; 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<StoreId> {
unimplemented!()
}
}
#[cfg(test)] #[cfg(test)]
mod test { mod test {