Skip to documentation
SLOP

tiny.syn.Span

Reference 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.

No direct callersNo direct callsspan.modelSpan
Static calls · unresolved targets: unknown · external targets: unknown.

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

span.Span.

Audit

Definitions1
Public names3
Members3
Version26.7.0
Revisiondaab053ee433