Home / Function/ new() — tailwindcss Function Reference

new() — tailwindcss Function Reference

Architecture documentation for the new() function in cursor.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  7d861e36_ab5b_aab3_3c31_06162bbc77b3["new()"]
  95863211_f6f6_7fff_0253_53a5f33740d9["move_to()"]
  7d861e36_ab5b_aab3_3c31_06162bbc77b3 -->|calls| 95863211_f6f6_7fff_0253_53a5f33740d9
  style 7d861e36_ab5b_aab3_3c31_06162bbc77b3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/cursor.rs lines 30–42

    pub fn new(input: &'a [u8]) -> Self {
        let mut cursor = Self {
            input,
            pos: 0,
            at_start: true,
            at_end: false,
            prev: 0x00,
            curr: 0x00,
            next: 0x00,
        };
        cursor.move_to(0);
        cursor
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does new() do?
new() is a function in the tailwindcss codebase.
What does new() call?
new() calls 1 function(s): move_to.

Analyze Your Own Codebase

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

Try Supermodel Free