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 74060605_fd94_ab9d_0b05_1abe6894b5bb["has_valid_boundaries()"] 3897e9dc_f51c_ded1_0843_8e8f59e1986b["boundary.rs"] 74060605_fd94_ab9d_0b05_1abe6894b5bb -->|defined in| 3897e9dc_f51c_ded1_0843_8e8f59e1986b d9fa916f_59fd_27c9_937f_dfc9277c1967["is_valid_before_boundary()"] 74060605_fd94_ab9d_0b05_1abe6894b5bb -->|calls| d9fa916f_59fd_27c9_937f_dfc9277c1967 0c1fcff7_6989_b9f3_9727_d7251f67442f["is_valid_after_boundary()"] 74060605_fd94_ab9d_0b05_1abe6894b5bb -->|calls| 0c1fcff7_6989_b9f3_9727_d7251f67442f style 74060605_fd94_ab9d_0b05_1abe6894b5bb 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
Defined In
Source
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