filter() — tailwindcss Function Reference
Architecture documentation for the filter() function in walk.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 1aaba1c8_3437_8f42_7482_2b7f27702c4c["filter()"] 232d7685_a0a3_6f0d_1b5d_9233ecba43d6["skip_entry()"] 232d7685_a0a3_6f0d_1b5d_9233ecba43d6 -->|calls| 1aaba1c8_3437_8f42_7482_2b7f27702c4c be21cd9d_32f8_3eb7_b73d_40d5a95dc7c5["tmpdir()"] 1aaba1c8_3437_8f42_7482_2b7f27702c4c -->|calls| be21cd9d_32f8_3eb7_b73d_40d5a95dc7c5 6be2bc5c_2422_2c09_8c7a_3e92060e5ad1["mkdirp()"] 1aaba1c8_3437_8f42_7482_2b7f27702c4c -->|calls| 6be2bc5c_2422_2c09_8c7a_3e92060e5ad1 e3491efe_c25e_6614_b6f7_1a3834b9d724["wfile()"] 1aaba1c8_3437_8f42_7482_2b7f27702c4c -->|calls| e3491efe_c25e_6614_b6f7_1a3834b9d724 03f45cf3_87f6_e91f_bef8_2f9380aab005["assert_paths()"] 1aaba1c8_3437_8f42_7482_2b7f27702c4c -->|calls| 03f45cf3_87f6_e91f_bef8_2f9380aab005 88f29c7d_46e6_f1a0_1341_0d11436fdbb4["filter_entry()"] 1aaba1c8_3437_8f42_7482_2b7f27702c4c -->|calls| 88f29c7d_46e6_f1a0_1341_0d11436fdbb4 22e554e0_3279_5bba_cd5c_45aa591685d1["path()"] 1aaba1c8_3437_8f42_7482_2b7f27702c4c -->|calls| 22e554e0_3279_5bba_cd5c_45aa591685d1 a66b0d22_2705_a201_19c2_3d7f1732de45["file_name()"] 1aaba1c8_3437_8f42_7482_2b7f27702c4c -->|calls| a66b0d22_2705_a201_19c2_3d7f1732de45 style 1aaba1c8_3437_8f42_7482_2b7f27702c4c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/ignore/src/walk.rs lines 2462–2480
fn filter() {
let td = tmpdir();
mkdirp(td.path().join("a/b/c"));
mkdirp(td.path().join("x/y"));
wfile(td.path().join("a/b/foo"), "");
wfile(td.path().join("x/y/foo"), "");
assert_paths(
td.path(),
&WalkBuilder::new(td.path()),
&["x", "x/y", "x/y/foo", "a", "a/b", "a/b/foo", "a/b/c"],
);
assert_paths(
td.path(),
&WalkBuilder::new(td.path()).filter_entry(|entry| entry.file_name() != OsStr::new("a")),
&["x", "x/y", "x/y/foo"],
);
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does filter() do?
filter() is a function in the tailwindcss codebase.
What does filter() call?
filter() calls 7 function(s): assert_paths, file_name, filter_entry, mkdirp, path, tmpdir, wfile.
What calls filter()?
filter() is called by 1 function(s): skip_entry.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free