extract_sorted_candidates() — tailwindcss Function Reference
Architecture documentation for the extract_sorted_candidates() function in mod.rs from the tailwindcss codebase.
Entity Profile
Dependency Diagram
graph TD 8f2e8263_71a9_a049_0c91_be243b9ddd77["extract_sorted_candidates()"] 322a5768_e6e0_c5e9_b1c2_7c6638e21f71["assert_extract_sorted_candidates()"] 322a5768_e6e0_c5e9_b1c2_7c6638e21f71 -->|calls| 8f2e8263_71a9_a049_0c91_be243b9ddd77 a88440ca_3a3f_4a07_4234_760efd75f698["assert_extract_candidates_contains()"] a88440ca_3a3f_4a07_4234_760efd75f698 -->|calls| 8f2e8263_71a9_a049_0c91_be243b9ddd77 2a34bbb8_098e_f736_c9a4_821aa310393f["extract()"] 8f2e8263_71a9_a049_0c91_be243b9ddd77 -->|calls| 2a34bbb8_098e_f736_c9a4_821aa310393f style 8f2e8263_71a9_a049_0c91_be243b9ddd77 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
crates/oxide/src/extractor/mod.rs lines 245–257
fn extract_sorted_candidates(input: &str) -> Vec<&str> {
let mut machine = Extractor::new(input.as_bytes());
let mut actual = machine
.extract()
.iter()
.filter_map(|x| match x {
Extracted::Candidate(candidate) => std::str::from_utf8(candidate).ok(),
Extracted::CssVariable(_) => None,
})
.collect::<Vec<_>>();
actual.sort();
actual
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does extract_sorted_candidates() do?
extract_sorted_candidates() is a function in the tailwindcss codebase.
What does extract_sorted_candidates() call?
extract_sorted_candidates() calls 1 function(s): extract.
What calls extract_sorted_candidates()?
extract_sorted_candidates() is called by 2 function(s): assert_extract_candidates_contains, assert_extract_sorted_candidates.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free