Home / Function/ add_str() — tailwindcss Function Reference

add_str() — tailwindcss Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  34528413_025e_b66e_b0cb_4851a28b21d1["add_str()"]
  f8b0c012_34e9_1bfc_8000_05d30b79d0e0["gi_from_str()"]
  f8b0c012_34e9_1bfc_8000_05d30b79d0e0 -->|calls| 34528413_025e_b66e_b0cb_4851a28b21d1
  79b1e608_69bd_75f8_9ae8_064afc75db6a["case_insensitive()"]
  79b1e608_69bd_75f8_9ae8_064afc75db6a -->|calls| 34528413_025e_b66e_b0cb_4851a28b21d1
  beacadb8_c4b1_66be_a831_13b5d839d638["add_line()"]
  34528413_025e_b66e_b0cb_4851a28b21d1 -->|calls| beacadb8_c4b1_66be_a831_13b5d839d638
  style 34528413_025e_b66e_b0cb_4851a28b21d1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/ignore/src/gitignore.rs lines 434–443

    fn add_str(
        &mut self,
        from: Option<PathBuf>,
        gitignore: &str,
    ) -> Result<&mut GitignoreBuilder, Error> {
        for line in gitignore.lines() {
            self.add_line(from.clone(), line)?;
        }
        Ok(self)
    }

Subdomains

Calls

Frequently Asked Questions

What does add_str() do?
add_str() is a function in the tailwindcss codebase.
What does add_str() call?
add_str() calls 1 function(s): add_line.
What calls add_str()?
add_str() is called by 2 function(s): case_insensitive, gi_from_str.

Analyze Your Own Codebase

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

Try Supermodel Free