tiny.syn.Span
Defined in span.model.
One marked byte range of a line and its role.
API (3)
Fields and members
Public fields and members.
Source
Source: lib/syn/src/span/model.zig:98
zig
/// One marked byte range of a line and its role. A renderer reads the spans of a line from/// `Storage.items` and styles each byte range. The spans of one line come in order and never/// overlap or have zero length. Touching spans of the same kind are merged into one. Bytes that no/// span covers carry no role.pub const Span = struct { /// The offset of the first covered byte, counted from the start of the line passed to the scan. start: usize, /// The offset one past the last covered byte, so `text[span.start..span.end]` is the covered /// text. The offset is always greater than `start` and at most the length of the line. end: usize, /// The role of the covered text. kind: Kind,};Source: lib/syn/src/root.zig:45
zig
pub const Span = span.Span;Also reachable as
Audit
| Definitions | 1 |
|---|---|
| Public names | 3 |
| Members | 3 |
| Version | 26.7.0 |
| Revision | daab053ee433 |