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
  ebafa1ff_2fcd_9817_fa3b_d7e18e6f5b9d["new()"]
  d43275d0_f361_9635_6e40_80b1b171c854["lib.rs"]
  ebafa1ff_2fcd_9817_fa3b_d7e18e6f5b9d -->|defined in| d43275d0_f361_9635_6e40_80b1b171c854
  style ebafa1ff_2fcd_9817_fa3b_d7e18e6f5b9d 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