Home / Function/ expand_tilde() — tailwindcss Function Reference

expand_tilde() — tailwindcss Function Reference

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

Function rust RustCore MachineExtractor calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  3a84d65e_91fa_3be5_6d33_82cfa7c5da01["expand_tilde()"]
  74b7aefc_45cf_a852_1f73_9331b584548c["parse_excludes_file()"]
  74b7aefc_45cf_a852_1f73_9331b584548c -->|calls| 3a84d65e_91fa_3be5_6d33_82cfa7c5da01
  0cfbc0f2_a94d_53c7_09cf_a48d18291e20["parse_excludes_file2()"]
  0cfbc0f2_a94d_53c7_09cf_a48d18291e20 -->|calls| 3a84d65e_91fa_3be5_6d33_82cfa7c5da01
  eae2dfe0_b386_299d_8620_bb5abc5436ab["parse_excludes_file4()"]
  eae2dfe0_b386_299d_8620_bb5abc5436ab -->|calls| 3a84d65e_91fa_3be5_6d33_82cfa7c5da01
  7a5da90e_5d46_3203_b841_466df8436759["home_dir()"]
  3a84d65e_91fa_3be5_6d33_82cfa7c5da01 -->|calls| 7a5da90e_5d46_3203_b841_466df8436759
  style 3a84d65e_91fa_3be5_6d33_82cfa7c5da01 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 676–682

fn expand_tilde(path: &str) -> String {
    let home = match home_dir() {
        None => return path.to_string(),
        Some(home) => home.to_string_lossy().into_owned(),
    };
    path.replace("~", &home)
}

Domain

Subdomains

Calls

Frequently Asked Questions

What does expand_tilde() do?
expand_tilde() is a function in the tailwindcss codebase.
What does expand_tilde() call?
expand_tilde() calls 1 function(s): home_dir.
What calls expand_tilde()?
expand_tilde() is called by 3 function(s): parse_excludes_file, parse_excludes_file2, parse_excludes_file4.

Analyze Your Own Codebase

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

Try Supermodel Free