mod.rs — tailwindcss Source File
Architecture documentation for mod.rs, a rust file in the tailwindcss codebase. 10 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR eb5f3ab1_80da_abe4_f35c_a91e8e409b69["mod.rs"] 12eefb39_12aa_f996_7af1_5862bf52586f["super::"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> 12eefb39_12aa_f996_7af1_5862bf52586f 96a36755_a007_15e1_ec6c_526c02d24b9b["crate::cursor"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> 96a36755_a007_15e1_ec6c_526c02d24b9b 1ca89cdd_8b9f_8c87_008f_8a0a441cb37c["crate::extractor::machine::Span"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> 1ca89cdd_8b9f_8c87_008f_8a0a441cb37c e0f23525_8f7e_40f1_bf05_d1517858fd4e["candidate_machine::CandidateMachine"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> e0f23525_8f7e_40f1_bf05_d1517858fd4e eb0e2cf3_c43a_18e4_1ee3_419d9d001b1c["css_variable_machine::CssVariableMachine"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> eb0e2cf3_c43a_18e4_1ee3_419d9d001b1c 568ff8ff_2ec2_98b5_142c_088bc1b1ac6e["machine::"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> 568ff8ff_2ec2_98b5_142c_088bc1b1ac6e e9595462_a203_28db_fb28_11cf538351ae["std::fmt"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> e9595462_a203_28db_fb28_11cf538351ae 6e8d9081_ad2a_8ce1_a339_9afeac221d22["crate::throughput::Throughput"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> 6e8d9081_ad2a_8ce1_a339_9afeac221d22 433675ca_8d0e_feff_42a5_b3f666878cca["pretty_assertions::assert_eq"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> 433675ca_8d0e_feff_42a5_b3f666878cca a89aa61c_e4aa_9168_687e_995e52c4d4ba["std::hint::black_box"] eb5f3ab1_80da_abe4_f35c_a91e8e409b69 --> a89aa61c_e4aa_9168_687e_995e52c4d4ba style eb5f3ab1_80da_abe4_f35c_a91e8e409b69 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
use crate::cursor;
use crate::extractor::machine::Span;
use candidate_machine::CandidateMachine;
use css_variable_machine::CssVariableMachine;
use machine::{Machine, MachineState};
use std::fmt;
pub mod arbitrary_property_machine;
pub mod arbitrary_value_machine;
pub mod arbitrary_variable_machine;
mod boundary;
pub mod bracket_stack;
pub mod candidate_machine;
pub mod css_variable_machine;
pub mod machine;
pub mod modifier_machine;
pub mod named_utility_machine;
pub mod named_variant_machine;
pub mod pre_processors;
pub mod string_machine;
pub mod utility_machine;
pub mod variant_machine;
#[derive(Debug)]
pub enum Extracted<'a> {
/// Extracted a valid looking candidate
///
/// E.g.: `flex`
///
Candidate(&'a [u8]),
/// Extracted a valid looking CSS variable
///
/// E.g.: `--my-variable`
///
CssVariable(&'a [u8]),
}
impl fmt::Display for Extracted<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
match self {
Extracted::Candidate(candidate) => {
write!(f, "Candidate({})", std::str::from_utf8(candidate).unwrap())
}
Extracted::CssVariable(candidate) => {
write!(
f,
"CssVariable({})",
std::str::from_utf8(candidate).unwrap()
)
}
}
}
}
#[derive(Debug)]
pub struct Extractor<'a> {
cursor: cursor::Cursor<'a>,
css_variable_machine: CssVariableMachine,
// ... (1078 more lines)
Domain
Subdomains
Functions
- assert_extract_candidates_contains()
- assert_extract_sorted_candidates()
- assert_extract_sorted_css_variables()
- drop_covered_spans()
- extract()
- extract_sorted_candidates()
- extract_sorted_css_variables()
- extract_sub_candidates()
- extract_variables_from_css()
- fmt()
- new()
- pre_process_input()
- test_angular_binding_attribute_syntax()
- test_angular_binding_syntax()
- test_arbitrary_container_queries_syntax()
- test_arbitrary_variable_with_data_type()
- test_candidates_extraction()
- test_classes_containing_number_followed_by_dash_or_underscore()
- test_clojure_syntax()
- test_csharp_syntax()
- test_extract_css_variables()
- test_extract_performance()
- test_extractor_extract_candidates()
- test_fluid_template_syntax()
- test_gleam_syntax()
- test_haml_syntax()
- test_js_embedded_in_php_syntax()
- test_js_syntax()
- test_js_tuple_syntax()
- test_leptos_rs_view_class_colon_syntax()
- test_overlapping_candidates()
- test_pug_syntax()
- test_ruby_syntax()
- test_slim_syntax()
- test_svelte_shorthand_syntax()
- test_twig_syntax()
Dependencies
- candidate_machine::CandidateMachine
- crate::cursor
- crate::extractor::machine::Span
- crate::throughput::Throughput
- css_variable_machine::CssVariableMachine
- machine::
- pretty_assertions::assert_eq
- std::fmt
- std::hint::black_box
- super::
Source
Frequently Asked Questions
What does mod.rs do?
mod.rs is a source file in the tailwindcss codebase, written in rust. It belongs to the Oxide domain, Extractor subdomain.
What functions are defined in mod.rs?
mod.rs defines 36 function(s): assert_extract_candidates_contains, assert_extract_sorted_candidates, assert_extract_sorted_css_variables, drop_covered_spans, extract, extract_sorted_candidates, extract_sorted_css_variables, extract_sub_candidates, extract_variables_from_css, fmt, and 26 more.
What does mod.rs depend on?
mod.rs imports 10 module(s): candidate_machine::CandidateMachine, crate::cursor, crate::extractor::machine::Span, crate::throughput::Throughput, css_variable_machine::CssVariableMachine, machine::, pretty_assertions::assert_eq, std::fmt, and 2 more.
Where is mod.rs in the architecture?
mod.rs is located at crates/oxide/src/extractor/mod.rs (domain: Oxide, subdomain: Extractor, directory: crates/oxide/src/extractor).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free