Home / Function/ _run_machine() — tailwindcss Function Reference

_run_machine() — tailwindcss Function Reference

Architecture documentation for the _run_machine() function in main.rs from the tailwindcss codebase.

Entity Profile

Relationship Graph

Source Code

crates/oxide/src/main.rs lines 18–33

fn _run_machine<T: Machine>(input: &[u8]) -> Vec<&[u8]> {
    let len = input.len();
    let mut machine = T::default();
    let mut cursor = Cursor::new(input);
    let mut result = Vec::with_capacity(25);

    while cursor.pos < len {
        if let MachineState::Done(span) = machine.next(&mut cursor) {
            result.push(span.slice(input));
        }

        cursor.advance();
    }

    result
}

Domain

Subdomains

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free