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 OxideEngine Scanner calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  597c8490_8cce_155b_dbbd_188149bf1602["expand_tilde()"]
  714a3a15_03d5_1e35_b535_53da70bce8eb["gitignore.rs"]
  597c8490_8cce_155b_dbbd_188149bf1602 -->|defined in| 714a3a15_03d5_1e35_b535_53da70bce8eb
  886269fe_559e_e467_669c_c33df5d322e7["parse_excludes_file()"]
  886269fe_559e_e467_669c_c33df5d322e7 -->|calls| 597c8490_8cce_155b_dbbd_188149bf1602
  2fa22540_9eff_78c0_0509_b149149b8ca3["parse_excludes_file2()"]
  2fa22540_9eff_78c0_0509_b149149b8ca3 -->|calls| 597c8490_8cce_155b_dbbd_188149bf1602
  2f2cb94f_bb7a_1ea8_42cd_1c08f48e2bec["parse_excludes_file4()"]
  2f2cb94f_bb7a_1ea8_42cd_1c08f48e2bec -->|calls| 597c8490_8cce_155b_dbbd_188149bf1602
  7b3912af_dde1_0fc2_6a49_16cac51e4370["home_dir()"]
  597c8490_8cce_155b_dbbd_188149bf1602 -->|calls| 7b3912af_dde1_0fc2_6a49_16cac51e4370
  style 597c8490_8cce_155b_dbbd_188149bf1602 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, defined in crates/ignore/src/gitignore.rs.
Where is expand_tilde() defined?
expand_tilde() is defined in crates/ignore/src/gitignore.rs at line 676.
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