Home / Function/ has_valid_boundaries() — tailwindcss Function Reference

has_valid_boundaries() — tailwindcss Function Reference

Architecture documentation for the has_valid_boundaries() function in boundary.rs from the tailwindcss codebase.

Entity Profile

Dependency Diagram

graph TD
  8194d059_b43c_a970_563d_3939cbecf8fa["has_valid_boundaries()"]
  370453f5_1434_7418_2789_1ad9e6e3d54e["boundary.rs"]
  8194d059_b43c_a970_563d_3939cbecf8fa -->|defined in| 370453f5_1434_7418_2789_1ad9e6e3d54e
  d35b392d_8447_ef4f_09ce_686effded092["is_valid_before_boundary()"]
  8194d059_b43c_a970_563d_3939cbecf8fa -->|calls| d35b392d_8447_ef4f_09ce_686effded092
  02c4e971_8451_f78e_ac9f_fd558e744471["is_valid_after_boundary()"]
  8194d059_b43c_a970_563d_3939cbecf8fa -->|calls| 02c4e971_8451_f78e_ac9f_fd558e744471
  style 8194d059_b43c_a970_563d_3939cbecf8fa fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

crates/oxide/src/extractor/boundary.rs lines 16–35

pub fn has_valid_boundaries(span: &Span, input: &[u8]) -> bool {
    let before = {
        if span.start == 0 {
            b'\0'
        } else {
            input[span.start - 1]
        }
    };

    let after = {
        if span.end >= input.len() - 1 {
            b'\0'
        } else {
            input[span.end + 1]
        }
    };

    // Ensure the span has valid boundary characters before and after
    is_valid_before_boundary(&before) && is_valid_after_boundary(&after)
}

Domain

Subdomains

Frequently Asked Questions

What does has_valid_boundaries() do?
has_valid_boundaries() is a function in the tailwindcss codebase, defined in crates/oxide/src/extractor/boundary.rs.
Where is has_valid_boundaries() defined?
has_valid_boundaries() is defined in crates/oxide/src/extractor/boundary.rs at line 16.
What does has_valid_boundaries() call?
has_valid_boundaries() calls 2 function(s): is_valid_after_boundary, is_valid_before_boundary.

Analyze Your Own Codebase

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

Try Supermodel Free