Home / Function/ explicit_ignore() — tailwindcss Function Reference

explicit_ignore() — tailwindcss Function Reference

Architecture documentation for the explicit_ignore() function in dir.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  f1f554cd_2dca_9460_e576_64c5b09c9268["explicit_ignore()"]
  1d8e185d_2d17_16a2_e6da_31f5e5c71648["tmpdir()"]
  f1f554cd_2dca_9460_e576_64c5b09c9268 -->|calls| 1d8e185d_2d17_16a2_e6da_31f5e5c71648
  b531cfc0_8a2c_1d41_6f18_1d84e771a9ef["wfile()"]
  f1f554cd_2dca_9460_e576_64c5b09c9268 -->|calls| b531cfc0_8a2c_1d41_6f18_1d84e771a9ef
  a3791d58_6294_cb66_0418_5756e23761fd["path()"]
  f1f554cd_2dca_9460_e576_64c5b09c9268 -->|calls| a3791d58_6294_cb66_0418_5756e23761fd
  5abb6c1d_e9b0_2ba9_7520_f7787bb0497c["add_ignore()"]
  f1f554cd_2dca_9460_e576_64c5b09c9268 -->|calls| 5abb6c1d_e9b0_2ba9_7520_f7787bb0497c
  386bbf62_59b6_b5e0_c202_c2ecee5729ec["build()"]
  f1f554cd_2dca_9460_e576_64c5b09c9268 -->|calls| 386bbf62_59b6_b5e0_c202_c2ecee5729ec
  7f3cd9fa_fc0e_11d8_c82c_d766c339923a["add_child()"]
  f1f554cd_2dca_9460_e576_64c5b09c9268 -->|calls| 7f3cd9fa_fc0e_11d8_c82c_d766c339923a
  22918057_f3e8_c59b_6372_a4375af46acd["matched()"]
  f1f554cd_2dca_9460_e576_64c5b09c9268 -->|calls| 22918057_f3e8_c59b_6372_a4375af46acd
  style f1f554cd_2dca_9460_e576_64c5b09c9268 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/dir.rs lines 933–948

    fn explicit_ignore() {
        let td = tmpdir();
        wfile(td.path().join("not-an-ignore"), "foo\n!bar");

        let (gi, err) = Gitignore::new(td.path().join("not-an-ignore"));
        assert!(err.is_none());
        let (ig, err) = IgnoreBuilder::new()
            .add_ignore(gi)
            .build()
            .add_child(td.path());
        assert!(err.is_none());
        assert!(ig.matched(td.path().join("foo"), false).is_ignore());
        assert!(ig.matched(td.path().join("bar"), false).is_whitelist());
        assert!(ig.matched(td.path().join("baz"), false).is_none());
        assert!(ig.matched("/foo", false).is_none());
    }

Subdomains

Frequently Asked Questions

What does explicit_ignore() do?
explicit_ignore() is a function in the tailwindcss codebase.
What does explicit_ignore() call?
explicit_ignore() calls 7 function(s): add_child, add_ignore, build, matched, path, tmpdir, wfile.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free