Skip to documentation
SLOP

tiny.syn.span

Reference tiny.syn span

Defined in tiny.syn.

The namespace holds what a scan produces: the marked byte ranges of a line, the buffer that receives them, and the arithmetic that sizes that buffer.

API (11)

Types and contracts

Public types and contracts.

Namespaces

Public namespaces.

No direct callersNo direct callstiny.synspan
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/syn/src/root.zig:39

zig
pub const span = @import("span/root.zig");

Source: lib/syn/src/span/root.zig

zig
//! The namespace holds what a scan produces: the marked byte ranges of a line, the buffer that//! receives them, and the arithmetic that sizes that buffer. A caller needs to know before it scans//! anything how much memory the marks of its longest line take, and then needs the marks of each//! line in a buffer it can read.//!//! Each marked range (*span*) carries its role with it, as a start byte, an end byte and a kind, so//! a renderer picks colors without scanning again. The buffer (*span storage*) is allocated once//! from a limit on line length, and every later line reuses it.pub const capacity = @import("capacity.zig");pub const model = @import("model.zig");pub const storage = @import("storage.zig");pub const Capacity = capacity.Capacity;pub const Limits = capacity.Limits;pub const DeriveError = capacity.DeriveError;pub const Kind = model.Kind;pub const Materialization = model.Materialization;pub const Span = model.Span;pub const Status = storage.Status;pub const Storage = storage.Storage;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433