Home / Function/ matched() — tailwindcss Function Reference

matched() — tailwindcss Function Reference

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

Function rust RustCore FileScanner calls 3 called by 9

Entity Profile

Dependency Diagram

graph TD
  3069e9ad_d841_5501_8b27_affdb3992c7b["matched()"]
  7b122099_ff4f_4f9b_18ef_c634e30af53b["empty()"]
  7b122099_ff4f_4f9b_18ef_c634e30af53b -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  40a2be42_a4b1_3080_a3ed_f2a1d64df754["simple()"]
  40a2be42_a4b1_3080_a3ed_f2a1d64df754 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  466dbd8c_ecac_3311_5631_d9cb142d32e0["only_ignores()"]
  466dbd8c_ecac_3311_5631_d9cb142d32e0 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  8cb9cb86_c8ec_9963_742e_ef6d116f6b12["precedence()"]
  8cb9cb86_c8ec_9963_742e_ef6d116f6b12 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  8885fe7c_78bc_54cc_2fcf_afed5bd9d184["gitignore()"]
  8885fe7c_78bc_54cc_2fcf_afed5bd9d184 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  8bf56193_2dc7_dbfe_77b6_f95300ef5096["allow_directories()"]
  8bf56193_2dc7_dbfe_77b6_f95300ef5096 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  115c9d12_21ba_1680_a418_d16e4f0a14b2["absolute_path()"]
  115c9d12_21ba_1680_a418_d16e4f0a14b2 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  f4a06641_1e58_13e0_46ef_ffa8f75a6084["case_insensitive()"]
  f4a06641_1e58_13e0_46ef_ffa8f75a6084 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  0e900270_fc86_382d_d4a8_a997e3282ee0["default_case_sensitive()"]
  0e900270_fc86_382d_d4a8_a997e3282ee0 -->|calls| 3069e9ad_d841_5501_8b27_affdb3992c7b
  bb6a4265_c9e6_8c53_5f30_680426be1ead["is_empty()"]
  3069e9ad_d841_5501_8b27_affdb3992c7b -->|calls| bb6a4265_c9e6_8c53_5f30_680426be1ead
  a524f117_5e71_48ae_d666_aea7a7de6c5e["num_whitelists()"]
  3069e9ad_d841_5501_8b27_affdb3992c7b -->|calls| a524f117_5e71_48ae_d666_aea7a7de6c5e
  e69f089f_084d_ce52_30ce_bed88c19e746["unmatched()"]
  3069e9ad_d841_5501_8b27_affdb3992c7b -->|calls| e69f089f_084d_ce52_30ce_bed88c19e746
  style 3069e9ad_d841_5501_8b27_affdb3992c7b 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)))
    }

Domain

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