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 RustCore PreProcessors calls 7 called by 1

Entity Profile

Dependency Diagram

graph TD
  985a1c30_a139_3fd4_c02b_cacd9451ee2f["filter()"]
  365169b4_4aeb_e5a8_2cbf_612384e629cc["skip_entry()"]
  365169b4_4aeb_e5a8_2cbf_612384e629cc -->|calls| 985a1c30_a139_3fd4_c02b_cacd9451ee2f
  e8c725dd_a885_9529_0af1_4e4171753fc6["tmpdir()"]
  985a1c30_a139_3fd4_c02b_cacd9451ee2f -->|calls| e8c725dd_a885_9529_0af1_4e4171753fc6
  a870695d_932a_bfd4_fe92_a94ee09973bb["mkdirp()"]
  985a1c30_a139_3fd4_c02b_cacd9451ee2f -->|calls| a870695d_932a_bfd4_fe92_a94ee09973bb
  65b715d0_a042_86f6_24a2_ee2f89075c41["wfile()"]
  985a1c30_a139_3fd4_c02b_cacd9451ee2f -->|calls| 65b715d0_a042_86f6_24a2_ee2f89075c41
  5fe9aa4d_d793_b1a2_d187_4991d92c8d6e["assert_paths()"]
  985a1c30_a139_3fd4_c02b_cacd9451ee2f -->|calls| 5fe9aa4d_d793_b1a2_d187_4991d92c8d6e
  fa3d359d_d14b_08f1_d467_f96adb29f479["filter_entry()"]
  985a1c30_a139_3fd4_c02b_cacd9451ee2f -->|calls| fa3d359d_d14b_08f1_d467_f96adb29f479
  006bb599_d40b_f53b_44c7_57dfd4237729["path()"]
  985a1c30_a139_3fd4_c02b_cacd9451ee2f -->|calls| 006bb599_d40b_f53b_44c7_57dfd4237729
  d314bb13_1176_6f26_94e3_109d9f9c0554["file_name()"]
  985a1c30_a139_3fd4_c02b_cacd9451ee2f -->|calls| d314bb13_1176_6f26_94e3_109d9f9c0554
  style 985a1c30_a139_3fd4_c02b_cacd9451ee2f 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.
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