min_depth() — tailwindcss Function Reference
Architecture documentation for the min_depth() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 1d6d093c_70c0_1a75_75db_cec98737a5ab["min_depth()"] 49d16e4d_6e89_c82e_25d8_4e2c5c3165b6["min_depth()"] 49d16e4d_6e89_c82e_25d8_4e2c5c3165b6 -->|calls| 1d6d093c_70c0_1a75_75db_cec98737a5ab 49d16e4d_6e89_c82e_25d8_4e2c5c3165b6["min_depth()"] 1d6d093c_70c0_1a75_75db_cec98737a5ab -->|calls| 49d16e4d_6e89_c82e_25d8_4e2c5c3165b6 e8c725dd_a885_9529_0af1_4e4171753fc6["tmpdir()"] 1d6d093c_70c0_1a75_75db_cec98737a5ab -->|calls| e8c725dd_a885_9529_0af1_4e4171753fc6 a870695d_932a_bfd4_fe92_a94ee09973bb["mkdirp()"] 1d6d093c_70c0_1a75_75db_cec98737a5ab -->|calls| a870695d_932a_bfd4_fe92_a94ee09973bb 65b715d0_a042_86f6_24a2_ee2f89075c41["wfile()"] 1d6d093c_70c0_1a75_75db_cec98737a5ab -->|calls| 65b715d0_a042_86f6_24a2_ee2f89075c41 5fe9aa4d_d793_b1a2_d187_4991d92c8d6e["assert_paths()"] 1d6d093c_70c0_1a75_75db_cec98737a5ab -->|calls| 5fe9aa4d_d793_b1a2_d187_4991d92c8d6e 401c5e00_2f82_6095_747e_21b71443ddb7["max_depth()"] 1d6d093c_70c0_1a75_75db_cec98737a5ab -->|calls| 401c5e00_2f82_6095_747e_21b71443ddb7 006bb599_d40b_f53b_44c7_57dfd4237729["path()"] 1d6d093c_70c0_1a75_75db_cec98737a5ab -->|calls| 006bb599_d40b_f53b_44c7_57dfd4237729 style 1d6d093c_70c0_1a75_75db_cec98737a5ab fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 2282–2324
fn min_depth() {
let td = tmpdir();
mkdirp(td.path().join("a/b/c"));
wfile(td.path().join("foo"), "");
wfile(td.path().join("a/foo"), "");
wfile(td.path().join("a/b/foo"), "");
wfile(td.path().join("a/b/c/foo"), "");
let builder = WalkBuilder::new(td.path());
assert_paths(
td.path(),
&builder,
&["a", "a/b", "a/b/c", "foo", "a/foo", "a/b/foo", "a/b/c/foo"],
);
let mut builder = WalkBuilder::new(td.path());
assert_paths(
td.path(),
&builder.min_depth(Some(0)),
&["a", "a/b", "a/b/c", "foo", "a/foo", "a/b/foo", "a/b/c/foo"],
);
assert_paths(
td.path(),
&builder.min_depth(Some(1)),
&["a", "a/b", "a/b/c", "foo", "a/foo", "a/b/foo", "a/b/c/foo"],
);
assert_paths(
td.path(),
builder.min_depth(Some(2)),
&["a/b", "a/b/c", "a/b/c/foo", "a/b/foo", "a/foo"],
);
assert_paths(
td.path(),
builder.min_depth(Some(3)),
&["a/b/c", "a/b/c/foo", "a/b/foo"],
);
assert_paths(td.path(), builder.min_depth(Some(10)), &[]);
assert_paths(
td.path(),
builder.min_depth(Some(2)).max_depth(Some(1)),
&["a/b", "a/foo"],
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does min_depth() do?
min_depth() is a function in the tailwindcss codebase.
What does min_depth() call?
min_depth() calls 7 function(s): assert_paths, max_depth, min_depth, mkdirp, path, tmpdir, wfile.
What calls min_depth()?
min_depth() is called by 1 function(s): min_depth.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free