from() — tailwindcss Function Reference
Architecture documentation for the from() function in sources.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 8d6103ef_abc8_16c1_1ffd_edbc7fefbfb5["from()"] 0c33b2c9_52bd_b204_c0de_0285d863ec6b["iter()"] 8d6103ef_abc8_16c1_1ffd_edbc7fefbfb5 -->|calls| 0c33b2c9_52bd_b204_c0de_0285d863ec6b style 8d6103ef_abc8_16c1_1ffd_edbc7fefbfb5 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
Calls
Source
Frequently Asked Questions
What does from() do?
from() is a function in the tailwindcss codebase.
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