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 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779["min_depth()"] f7080f3c_9f46_2dbc_86ce_d04eb2608c59["min_depth()"] f7080f3c_9f46_2dbc_86ce_d04eb2608c59 -->|calls| 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 f7080f3c_9f46_2dbc_86ce_d04eb2608c59["min_depth()"] 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| f7080f3c_9f46_2dbc_86ce_d04eb2608c59 be21cd9d_32f8_3eb7_b73d_40d5a95dc7c5["tmpdir()"] 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| be21cd9d_32f8_3eb7_b73d_40d5a95dc7c5 6be2bc5c_2422_2c09_8c7a_3e92060e5ad1["mkdirp()"] 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| 6be2bc5c_2422_2c09_8c7a_3e92060e5ad1 e3491efe_c25e_6614_b6f7_1a3834b9d724["wfile()"] 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| e3491efe_c25e_6614_b6f7_1a3834b9d724 03f45cf3_87f6_e91f_bef8_2f9380aab005["assert_paths()"] 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| 03f45cf3_87f6_e91f_bef8_2f9380aab005 4ad2677e_56c0_f1a2_7b12_5382c0527d1c["max_depth()"] 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| 4ad2677e_56c0_f1a2_7b12_5382c0527d1c 9dbc0f8b_e5d8_bd69_1707_cf790a93bf6e["path()"] 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 -->|calls| 9dbc0f8b_e5d8_bd69_1707_cf790a93bf6e style 7aa6c94c_9bb2_b710_8193_8ab9ba9d0779 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