Home / Function/ is_root() — tailwindcss Function Reference

is_root() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  47225fa8_28c5_e629_dd3e_5a43bb922b64["is_root()"]
  a558c8e1_3e7c_59d2_b113_bacec65ba188["dir.rs"]
  47225fa8_28c5_e629_dd3e_5a43bb922b64 -->|defined in| a558c8e1_3e7c_59d2_b113_bacec65ba188
  f704589e_68db_601b_f96b_2d1fcf26e7d3["add_parents()"]
  f704589e_68db_601b_f96b_2d1fcf26e7d3 -->|calls| 47225fa8_28c5_e629_dd3e_5a43bb922b64
  style 47225fa8_28c5_e629_dd3e_5a43bb922b64 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/dir.rs lines 160–162

    pub(crate) fn is_root(&self) -> bool {
        self.0.parent.is_none()
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does is_root() do?
is_root() is a function in the tailwindcss codebase, defined in crates/ignore/src/dir.rs.
Where is is_root() defined?
is_root() is defined in crates/ignore/src/dir.rs at line 160.
What calls is_root()?
is_root() is called by 1 function(s): add_parents.

Analyze Your Own Codebase

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

Try Supermodel Free