Home / File/ mod.rs — tailwindcss Source File

mod.rs — tailwindcss Source File

Architecture documentation for mod.rs, a rust file in the tailwindcss codebase. 10 imports, 0 dependents.

File rust Oxide Extractor 10 imports 36 functions

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

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::

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