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
  2837a507_a753_f4c6_47cd_92ac6ba5e288["new()"]
  38e073c3_a357_d869_e8e1_3fb53595a170["cursor.rs"]
  2837a507_a753_f4c6_47cd_92ac6ba5e288 -->|defined in| 38e073c3_a357_d869_e8e1_3fb53595a170
  6ae0d4fb_920b_3496_aacb_6788f16632ce["move_to()"]
  2837a507_a753_f4c6_47cd_92ac6ba5e288 -->|calls| 6ae0d4fb_920b_3496_aacb_6788f16632ce
  style 2837a507_a753_f4c6_47cd_92ac6ba5e288 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, defined in crates/oxide/src/cursor.rs.
Where is new() defined?
new() is defined in crates/oxide/src/cursor.rs at line 30.
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