Home / Function/ matched() — tailwindcss Function Reference

matched() — tailwindcss Function Reference

Architecture documentation for the matched() function in overrides.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  db737829_f91d_719c_4c7f_a4130e5a1912["matched()"]
  ed676537_6d0f_ba28_37fa_65d664b91ada["empty()"]
  ed676537_6d0f_ba28_37fa_65d664b91ada -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  0a0ea79b_159e_2a53_f203_e5794b43676a["simple()"]
  0a0ea79b_159e_2a53_f203_e5794b43676a -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  6af98b76_5882_aa38_8c4c_aa5d75d2b35f["only_ignores()"]
  6af98b76_5882_aa38_8c4c_aa5d75d2b35f -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  ca3d83f6_f5b6_da61_99aa_4d0bb9a8120c["precedence()"]
  ca3d83f6_f5b6_da61_99aa_4d0bb9a8120c -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  51919a02_0852_3fd1_03df_8ad058402ab5["gitignore()"]
  51919a02_0852_3fd1_03df_8ad058402ab5 -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  f39d96e3_8e61_99c6_c88f_0366b1eef0aa["allow_directories()"]
  f39d96e3_8e61_99c6_c88f_0366b1eef0aa -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  143d738f_fbd4_b8cb_20df_1d27e0dcb03d["absolute_path()"]
  143d738f_fbd4_b8cb_20df_1d27e0dcb03d -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  efdcb200_98b5_8ca1_0648_3e6ea4a6b4af["case_insensitive()"]
  efdcb200_98b5_8ca1_0648_3e6ea4a6b4af -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  e21f52a9_79fb_3c7d_02f9_91e22cdca0eb["default_case_sensitive()"]
  e21f52a9_79fb_3c7d_02f9_91e22cdca0eb -->|calls| db737829_f91d_719c_4c7f_a4130e5a1912
  7e7e01f8_2e63_f563_c39a_82b43ee7b3d5["is_empty()"]
  db737829_f91d_719c_4c7f_a4130e5a1912 -->|calls| 7e7e01f8_2e63_f563_c39a_82b43ee7b3d5
  b7d71f16_143f_34c8_6c3f_512b2e8bdfa5["num_whitelists()"]
  db737829_f91d_719c_4c7f_a4130e5a1912 -->|calls| b7d71f16_143f_34c8_6c3f_512b2e8bdfa5
  e2c5bbe2_8a42_6f87_cf40_bef8921e3ea8["unmatched()"]
  db737829_f91d_719c_4c7f_a4130e5a1912 -->|calls| e2c5bbe2_8a42_6f87_cf40_bef8921e3ea8
  style db737829_f91d_719c_4c7f_a4130e5a1912 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/overrides.rs lines 97–106

    pub fn matched<'a, P: AsRef<Path>>(&'a self, path: P, is_dir: bool) -> Match<Glob<'a>> {
        if self.is_empty() {
            return Match::None;
        }
        let mat = self.0.matched(path, is_dir).invert();
        if mat.is_none() && self.num_whitelists() > 0 && !is_dir {
            return Match::Ignore(Glob::unmatched());
        }
        mat.map(move |giglob| Glob(GlobInner::Matched(giglob)))
    }

Subdomains

Frequently Asked Questions

What does matched() do?
matched() is a function in the tailwindcss codebase.
What does matched() call?
matched() calls 3 function(s): is_empty, num_whitelists, unmatched.
What calls matched()?
matched() is called by 9 function(s): absolute_path, allow_directories, case_insensitive, default_case_sensitive, empty, gitignore, only_ignores, precedence, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free