Home / Function/ from_walkdir() — tailwindcss Function Reference

from_walkdir() — tailwindcss Function Reference

Architecture documentation for the from_walkdir() function in lib.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  3608316b_f560_1cf7_a117_ed58d131ae5b["from_walkdir()"]
  19a579f2_0845_488e_2298_f5413c4f51d9["depth()"]
  3608316b_f560_1cf7_a117_ed58d131ae5b -->|calls| 19a579f2_0845_488e_2298_f5413c4f51d9
  e75608f9_9ba8_1344_b939_0075ee3cc7cc["path()"]
  3608316b_f560_1cf7_a117_ed58d131ae5b -->|calls| e75608f9_9ba8_1344_b939_0075ee3cc7cc
  6276f537_5bf1_3387_5dd4_2953bf0a4161["map()"]
  3608316b_f560_1cf7_a117_ed58d131ae5b -->|calls| 6276f537_5bf1_3387_5dd4_2953bf0a4161
  style 3608316b_f560_1cf7_a117_ed58d131ae5b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/lib.rs lines 292–312

    fn from_walkdir(err: walkdir::Error) -> Error {
        let depth = err.depth();
        if let (Some(anc), Some(child)) = (err.loop_ancestor(), err.path()) {
            return Error::WithDepth {
                depth,
                err: Box::new(Error::Loop {
                    ancestor: anc.to_path_buf(),
                    child: child.to_path_buf(),
                }),
            };
        }
        let path = err.path().map(|p| p.to_path_buf());
        let mut ig_err = Error::Io(std::io::Error::from(err));
        if let Some(path) = path {
            ig_err = Error::WithPath {
                path,
                err: Box::new(ig_err),
            };
        }
        ig_err
    }

Subdomains

Frequently Asked Questions

What does from_walkdir() do?
from_walkdir() is a function in the tailwindcss codebase.
What does from_walkdir() call?
from_walkdir() calls 3 function(s): depth, map, path.

Analyze Your Own Codebase

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

Try Supermodel Free