Home / Function/ matched() — tailwindcss Function Reference

matched() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8ec5ccab_4c41_0d11_dfea_bf7d548be815["matched()"]
  79b1e608_69bd_75f8_9ae8_064afc75db6a["case_insensitive()"]
  79b1e608_69bd_75f8_9ae8_064afc75db6a -->|calls| 8ec5ccab_4c41_0d11_dfea_bf7d548be815
  39e475ea_b9d2_0858_b175_c71a0421de7a["is_empty()"]
  8ec5ccab_4c41_0d11_dfea_bf7d548be815 -->|calls| 39e475ea_b9d2_0858_b175_c71a0421de7a
  b251a053_a225_283e_4364_2e73be18bf20["matched_stripped()"]
  8ec5ccab_4c41_0d11_dfea_bf7d548be815 -->|calls| b251a053_a225_283e_4364_2e73be18bf20
  d45aaf33_d0f0_8994_bfd6_6988593b21ca["strip()"]
  8ec5ccab_4c41_0d11_dfea_bf7d548be815 -->|calls| d45aaf33_d0f0_8994_bfd6_6988593b21ca
  style 8ec5ccab_4c41_0d11_dfea_bf7d548be815 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 193–198

    pub fn matched<P: AsRef<Path>>(&self, path: P, is_dir: bool) -> Match<&Glob> {
        if self.is_empty() {
            return Match::None;
        }
        self.matched_stripped(self.strip(path.as_ref()), is_dir)
    }

Subdomains

Called By

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, matched_stripped, strip.
What calls matched()?
matched() is called by 1 function(s): case_insensitive.

Analyze Your Own Codebase

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

Try Supermodel Free