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.

Function rust RustCore PreProcessors calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  c315d9a5_ab6e_e200_eab8_ffefbfc19c45["add_str()"]
  06606044_53a6_a123_d53b_0ff3cdba2475["gi_from_str()"]
  06606044_53a6_a123_d53b_0ff3cdba2475 -->|calls| c315d9a5_ab6e_e200_eab8_ffefbfc19c45
  28509baa_2e2e_fa8a_d52a_558985aba403["case_insensitive()"]
  28509baa_2e2e_fa8a_d52a_558985aba403 -->|calls| c315d9a5_ab6e_e200_eab8_ffefbfc19c45
  7d4fc0a8_2482_5c00_9ba0_171b0cafaa7a["add_line()"]
  c315d9a5_ab6e_e200_eab8_ffefbfc19c45 -->|calls| 7d4fc0a8_2482_5c00_9ba0_171b0cafaa7a
  style c315d9a5_ab6e_e200_eab8_ffefbfc19c45 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)
    }

Domain

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