Lines Matching refs:todo
99 todo: Vec<Result<(PathBuf, usize), GlobError>>,
231 todo: Vec::new(),
256 let todo = Vec::new();
262 todo,
332 // the todo buffer hasn't been initialized yet, so it's done at this
341 fill_todo(&mut self.todo, &self.dir_patterns, 0, &scope, self.options);
346 if self.dir_patterns.is_empty() || self.todo.is_empty() {
350 let (path, mut idx) = match self.todo.pop().unwrap() {
379 &mut self.todo,
427 &mut self.todo,
808 // Fills `todo` with paths under `path` to be matched by `patterns[idx]`,
812 todo: &mut Vec<Result<(PathBuf, usize), GlobError>>,
831 let add = |todo: &mut Vec<_>, next_path: PathBuf| {
836 todo.push(Ok((next_path, !0 as usize)));
838 fill_todo(todo, patterns, idx + 1, &next_path, options);
859 add(todo, next_path);
878 todo.extend(children.into_iter().map(|x| Ok((x, idx))));
888 add(todo, path.join(special));
894 todo.push(Err(GlobError {