Home / Function/ new() — tailwindcss Function Reference

new() — tailwindcss Function Reference

Architecture documentation for the new() function in lib.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  cb210caa_738d_4efc_4f1b_69f503faab03["new()"]
  74c53f4e_2840_1066_7dc8_12effdbe6a90["lib.rs"]
  cb210caa_738d_4efc_4f1b_69f503faab03 -->|defined in| 74c53f4e_2840_1066_7dc8_12effdbe6a90
  style cb210caa_738d_4efc_4f1b_69f503faab03 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/node/src/lib.rs lines 114–121

  pub fn new(opts: ScannerOptions) -> Self {
    Self {
      scanner: tailwindcss_oxide::Scanner::new(match opts.sources {
        Some(sources) => sources.into_iter().map(Into::into).collect(),
        None => vec![],
      }),
    }
  }

Domain

Subdomains

Frequently Asked Questions

What does new() do?
new() is a function in the tailwindcss codebase, defined in crates/node/src/lib.rs.
Where is new() defined?
new() is defined in crates/node/src/lib.rs at line 114.

Analyze Your Own Codebase

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

Try Supermodel Free