from() — tailwindcss Function Reference
Architecture documentation for the from() function in sources.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 19981ddc_3af6_569d_127a_81a94342505e["from()"] 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb["sources.rs"] 19981ddc_3af6_569d_127a_81a94342505e -->|defined in| 2ba1e6a3_0391_ac7e_04d2_d5d35ad686bb a0455852_d436_b0af_a1c6_f09d2ff448a3["iter()"] 19981ddc_3af6_569d_127a_81a94342505e -->|calls| a0455852_d436_b0af_a1c6_f09d2ff448a3 style 19981ddc_3af6_569d_127a_81a94342505e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/scanner/sources.rs lines 230–261
fn from(value: PublicSourceEntry) -> Self {
let auto = value.pattern.ends_with("**/*")
|| PathBuf::from(&value.base).join(&value.pattern).is_dir();
let inside_ignored_content_dir = IGNORED_CONTENT_DIRS.iter().any(|dir| {
value.base.contains(&format!(
"{}{}{}",
std::path::MAIN_SEPARATOR,
dir,
std::path::MAIN_SEPARATOR
)) || value
.base
.ends_with(&format!("{}{}", std::path::MAIN_SEPARATOR, dir,))
});
match (value.negated, auto, inside_ignored_content_dir) {
(false, true, false) => SourceEntry::Auto {
base: value.base.into(),
},
(false, true, true) => SourceEntry::External {
base: value.base.into(),
},
(false, false, _) => SourceEntry::Pattern {
base: value.base.into(),
pattern: value.pattern,
},
(true, _, _) => SourceEntry::Ignored {
base: value.base.into(),
pattern: value.pattern,
},
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does from() do?
from() is a function in the tailwindcss codebase, defined in crates/oxide/src/scanner/sources.rs.
Where is from() defined?
from() is defined in crates/oxide/src/scanner/sources.rs at line 230.
What does from() call?
from() calls 1 function(s): iter.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free