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 Oxide Scanner calls 7 called by 1

Entity Profile

Dependency Diagram

graph TD
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e["filter()"]
  8031325b_dcd2_8c49_70e7_46191ce03a79["walk.rs"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|defined in| 8031325b_dcd2_8c49_70e7_46191ce03a79
  d58582e3_a53c_e31d_6fdd_178c8966b65f["skip_entry()"]
  d58582e3_a53c_e31d_6fdd_178c8966b65f -->|calls| 69a0d9ed_4b28_ff87_47f8_89acb79b0e9e
  c755c2fc_c832_3451_a38d_48285b12e6d3["tmpdir()"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|calls| c755c2fc_c832_3451_a38d_48285b12e6d3
  eb9cff24_ad95_e69f_d2f3_914faaa93121["mkdirp()"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|calls| eb9cff24_ad95_e69f_d2f3_914faaa93121
  934d114d_964b_414a_2b41_82e8174b7c3d["path()"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|calls| 934d114d_964b_414a_2b41_82e8174b7c3d
  dc15f3bc_b785_736f_2fa4_5e6e62bbfee6["wfile()"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|calls| dc15f3bc_b785_736f_2fa4_5e6e62bbfee6
  3c337f58_9743_cefc_9b9d_984193abd3d2["assert_paths()"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|calls| 3c337f58_9743_cefc_9b9d_984193abd3d2
  03ef2b1f_c87d_b115_7386_32cd19381ac1["filter_entry()"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|calls| 03ef2b1f_c87d_b115_7386_32cd19381ac1
  e59589af_646c_3e73_5b4d_026894971a5d["file_name()"]
  69a0d9ed_4b28_ff87_47f8_89acb79b0e9e -->|calls| e59589af_646c_3e73_5b4d_026894971a5d
  style 69a0d9ed_4b28_ff87_47f8_89acb79b0e9e 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