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 0fcd0fda_f6d1_052f_9575_133f5b2763a7["mod.rs"] 5d977ab3_eccc_64dd_6684_ec779f8861bb["super::"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> 5d977ab3_eccc_64dd_6684_ec779f8861bb e4e20bdf_ad1e_e4a0_5cba_d0f5a5db787e["crate::cursor"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> e4e20bdf_ad1e_e4a0_5cba_d0f5a5db787e e027e322_cf17_1723_e859_e9f76c832959["crate::extractor::machine::Span"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> e027e322_cf17_1723_e859_e9f76c832959 e42411b5_ded0_a72d_abb5_4c9cb7a07d5c["candidate_machine::CandidateMachine"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> e42411b5_ded0_a72d_abb5_4c9cb7a07d5c 233e39f1_4482_09e9_a5b5_59c657f26039["css_variable_machine::CssVariableMachine"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> 233e39f1_4482_09e9_a5b5_59c657f26039 8b59540f_9a11_d56c_8a1e_b4fa94ca2b76["machine::"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> 8b59540f_9a11_d56c_8a1e_b4fa94ca2b76 a1b7040e_b6e3_8c4f_da7e_c6b05c9d1d36["std::fmt"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> a1b7040e_b6e3_8c4f_da7e_c6b05c9d1d36 47b0f6b9_25fb_1ddf_6cf7_af1d1733d85c["crate::throughput::Throughput"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> 47b0f6b9_25fb_1ddf_6cf7_af1d1733d85c e4088d34_b5b4_ec51_b975_557a1536ec76["pretty_assertions::assert_eq"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> e4088d34_b5b4_ec51_b975_557a1536ec76 cc79870b_65f6_c4e5_bd7d_4f3d41ad1300["std::hint::black_box"] 0fcd0fda_f6d1_052f_9575_133f5b2763a7 --> cc79870b_65f6_c4e5_bd7d_4f3d41ad1300 style 0fcd0fda_f6d1_052f_9575_133f5b2763a7 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 OxideEngine 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: OxideEngine, 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