Home / Function/ filter() — tailwindcss Function Reference

filter() — tailwindcss Function Reference

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

Function rust OxideEngine Extractor calls 7 called by 1

Entity Profile

Dependency Diagram

graph TD
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0["filter()"]
  b3ca296d_790b_9bf3_23ea_56e5c5c48565["walk.rs"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|defined in| b3ca296d_790b_9bf3_23ea_56e5c5c48565
  10cd0c5a_639d_bb39_ec52_5763cda217d9["skip_entry()"]
  10cd0c5a_639d_bb39_ec52_5763cda217d9 -->|calls| 3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0
  ad34ca57_79fe_7ec6_ca38_10ba5937d0e2["tmpdir()"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|calls| ad34ca57_79fe_7ec6_ca38_10ba5937d0e2
  2981eeff_1441_f747_1a13_e8238ee63e55["mkdirp()"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|calls| 2981eeff_1441_f747_1a13_e8238ee63e55
  eaa93251_8ff2_5e1b_adef_2cb61588bdb0["path()"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|calls| eaa93251_8ff2_5e1b_adef_2cb61588bdb0
  9c3b3196_f0f0_5b2a_ee9a_f692140fa4a4["wfile()"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|calls| 9c3b3196_f0f0_5b2a_ee9a_f692140fa4a4
  9df16f40_0af0_7013_ce71_ae30d02a8d20["assert_paths()"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|calls| 9df16f40_0af0_7013_ce71_ae30d02a8d20
  7a40a6d6_33ec_5a35_34e6_c0b8d5ac9f44["filter_entry()"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|calls| 7a40a6d6_33ec_5a35_34e6_c0b8d5ac9f44
  f1382949_cfc4_a873_7f70_f27a16b9b7b4["file_name()"]
  3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 -->|calls| f1382949_cfc4_a873_7f70_f27a16b9b7b4
  style 3d0f4737_4e4a_98d7_8f8c_636f5cbc5be0 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

Frequently Asked Questions

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