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
  23c5dac7_67c4_c709_00fe_73f8b86eee40["from_walkdir()"]
  45d3637d_63b6_933b_072c_47e0aeaa39a0["lib.rs"]
  23c5dac7_67c4_c709_00fe_73f8b86eee40 -->|defined in| 45d3637d_63b6_933b_072c_47e0aeaa39a0
  6deebeb7_916a_ad58_a98f_bd81a9fbe6e7["depth()"]
  23c5dac7_67c4_c709_00fe_73f8b86eee40 -->|calls| 6deebeb7_916a_ad58_a98f_bd81a9fbe6e7
  d7a47d07_4915_9772_f68d_d8f4dada2456["path()"]
  23c5dac7_67c4_c709_00fe_73f8b86eee40 -->|calls| d7a47d07_4915_9772_f68d_d8f4dada2456
  2b35ce8a_c3be_4789_68ae_079abfc9ba93["map()"]
  23c5dac7_67c4_c709_00fe_73f8b86eee40 -->|calls| 2b35ce8a_c3be_4789_68ae_079abfc9ba93
  style 23c5dac7_67c4_c709_00fe_73f8b86eee40 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
    }

Domain

Subdomains

Frequently Asked Questions

What does from_walkdir() do?
from_walkdir() is a function in the tailwindcss codebase, defined in crates/ignore/src/lib.rs.
Where is from_walkdir() defined?
from_walkdir() is defined in crates/ignore/src/lib.rs at line 292.
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