Home / Function/ extract_sorted_candidates() — tailwindcss Function Reference

extract_sorted_candidates() — tailwindcss Function Reference

Architecture documentation for the extract_sorted_candidates() function in mod.rs from the tailwindcss codebase.

Function rust OxideEngine Extractor calls 1 called by 2

Entity Profile

Dependency Diagram

graph TD
  71451c19_80d4_2ea2_194b_8cfb0de28a9e["extract_sorted_candidates()"]
  0fcd0fda_f6d1_052f_9575_133f5b2763a7["mod.rs"]
  71451c19_80d4_2ea2_194b_8cfb0de28a9e -->|defined in| 0fcd0fda_f6d1_052f_9575_133f5b2763a7
  0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9["assert_extract_sorted_candidates()"]
  0b7ae7d0_7e0e_b8cd_767a_15a18e3d04c9 -->|calls| 71451c19_80d4_2ea2_194b_8cfb0de28a9e
  08871a07_5115_fd1d_37f0_ee5de4206d3d["assert_extract_candidates_contains()"]
  08871a07_5115_fd1d_37f0_ee5de4206d3d -->|calls| 71451c19_80d4_2ea2_194b_8cfb0de28a9e
  2e1301fe_658a_5bf1_3e5d_7a64079b8218["extract()"]
  71451c19_80d4_2ea2_194b_8cfb0de28a9e -->|calls| 2e1301fe_658a_5bf1_3e5d_7a64079b8218
  style 71451c19_80d4_2ea2_194b_8cfb0de28a9e 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

Frequently Asked Questions

What does extract_sorted_candidates() do?
extract_sorted_candidates() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/mod.rs.
Where is extract_sorted_candidates() defined?
extract_sorted_candidates() is defined in crates/oxide/src/extractor/mod.rs at line 245.
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