Home / Function/ next() — tailwindcss Function Reference

next() — tailwindcss Function Reference

Architecture documentation for the next() function in walk.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  59c2d4c1_91fb_2d7a_997d_941710264436["next()"]
  e4e100b5_f7f1_f0f3_8c70_c543d01a4402["next()"]
  e4e100b5_f7f1_f0f3_8c70_c543d01a4402 -->|calls| 59c2d4c1_91fb_2d7a_997d_941710264436
  e4e100b5_f7f1_f0f3_8c70_c543d01a4402["next()"]
  59c2d4c1_91fb_2d7a_997d_941710264436 -->|calls| e4e100b5_f7f1_f0f3_8c70_c543d01a4402
  d7a50b77_3ccd_91f6_973e_d4bb9ea8d407["walkdir_is_dir()"]
  59c2d4c1_91fb_2d7a_997d_941710264436 -->|calls| d7a50b77_3ccd_91f6_973e_d4bb9ea8d407
  ca893623_44b4_8a0b_111d_d2fbc9208424["depth()"]
  59c2d4c1_91fb_2d7a_997d_941710264436 -->|calls| ca893623_44b4_8a0b_111d_d2fbc9208424
  style 59c2d4c1_91fb_2d7a_997d_941710264436 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 1190–1215

    fn next(&mut self) -> Option<walkdir::Result<WalkEvent>> {
        let dent = self.next.take().or_else(|| self.it.next());
        let depth = match dent {
            None => 0,
            Some(Ok(ref dent)) => dent.depth(),
            Some(Err(ref err)) => err.depth(),
        };
        if depth < self.depth {
            self.depth -= 1;
            self.next = dent;
            return Some(Ok(WalkEvent::Exit));
        }
        self.depth = depth;
        match dent {
            None => None,
            Some(Err(err)) => Some(Err(err)),
            Some(Ok(dent)) => {
                if walkdir_is_dir(&dent) {
                    self.depth += 1;
                    Some(Ok(WalkEvent::Dir(dent)))
                } else {
                    Some(Ok(WalkEvent::File(dent)))
                }
            }
        }
    }

Subdomains

Called By

Frequently Asked Questions

What does next() do?
next() is a function in the tailwindcss codebase.
What does next() call?
next() calls 3 function(s): depth, next, walkdir_is_dir.
What calls next()?
next() is called by 1 function(s): next.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free