Home / Function/ max_depth() — tailwindcss Function Reference

max_depth() — tailwindcss Function Reference

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

Function rust Oxide PreProcessors calls 5 called by 2

Entity Profile

Dependency Diagram

graph TD
  34bbf490_423c_6be8_46dd_9b51a45a65e9["max_depth()"]
  8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"]
  34bbf490_423c_6be8_46dd_9b51a45a65e9 -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79
  7fdc5de6_ca45_c05a_0113_cfaee5250ec1["build()"]
  7fdc5de6_ca45_c05a_0113_cfaee5250ec1 -->|calls| 34bbf490_423c_6be8_46dd_9b51a45a65e9
  dc4c6622_582c_3872_a3ca_10e03e301006["min_depth()"]
  dc4c6622_582c_3872_a3ca_10e03e301006 -->|calls| 34bbf490_423c_6be8_46dd_9b51a45a65e9
  c755c2fc_c832_3451_a38d_48285b12e6d3["tmpdir()"]
  34bbf490_423c_6be8_46dd_9b51a45a65e9 -->|calls| c755c2fc_c832_3451_a38d_48285b12e6d3
  eb9cff24_ad95_e69f_d2f3_914faaa93121["mkdirp()"]
  34bbf490_423c_6be8_46dd_9b51a45a65e9 -->|calls| eb9cff24_ad95_e69f_d2f3_914faaa93121
  934d114d_964b_414a_2b41_82e8174b7c3d["path()"]
  34bbf490_423c_6be8_46dd_9b51a45a65e9 -->|calls| 934d114d_964b_414a_2b41_82e8174b7c3d
  dc15f3bc_b785_736f_2fa4_5e6e62bbfee6["wfile()"]
  34bbf490_423c_6be8_46dd_9b51a45a65e9 -->|calls| dc15f3bc_b785_736f_2fa4_5e6e62bbfee6
  3c337f58_9743_cefc_9b9d_984193abd3d2["assert_paths()"]
  34bbf490_423c_6be8_46dd_9b51a45a65e9 -->|calls| 3c337f58_9743_cefc_9b9d_984193abd3d2
  style 34bbf490_423c_6be8_46dd_9b51a45a65e9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/walk.rs lines 652–658

    pub fn max_depth(&mut self, depth: Option<usize>) -> &mut WalkBuilder {
        self.max_depth = depth;
        if self.min_depth.is_some() && self.max_depth.is_some() && self.max_depth < self.min_depth {
            self.max_depth = self.min_depth;
        }
        self
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does max_depth() do?
max_depth() is a function in the tailwindcss codebase, defined in crates/ignore/src/walk.rs.
Where is max_depth() defined?
max_depth() is defined in crates/ignore/src/walk.rs at line 652.
What does max_depth() call?
max_depth() calls 5 function(s): assert_paths, mkdirp, path, tmpdir, wfile.
What calls max_depth()?
max_depth() is called by 2 function(s): build, min_depth.

Analyze Your Own Codebase

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

Try Supermodel Free