Add iterator type for StoreId
This commit is contained in:
parent
e951666e3d
commit
36770abac5
1 changed files with 24 additions and 0 deletions
|
@ -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<StoreId> {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
|
||||
|
|
Loading…
Reference in a new issue