Skip to documentation
SLOP

tiny.syn.SpanLimits

Reference tiny.syn SpanLimits

Defined in span.capacity.

The one limit the caller chooses for span storage.

API (1)

Fields and members

Public fields and members.

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

Source

Source: lib/syn/src/span/capacity.zig:23

zig
/// The one limit the caller chooses for span storage. A caller fills it in once to say how long a/// line may be before its spans are dropped. `Capacity.derive` and `Storage.init` both take it.pub const Limits = struct {    /// The text limit, in bytes. A longer line is still scanned but keeps no spans. The storage    /// holds exactly this many spans. Zero is allowed and gives storage with no room, so every    /// nonempty line is discarded. The README example uses 4096.    max_text_bytes: usize,};

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

zig
pub const SpanLimits = span.Limits;

Also reachable as

span.Limits.

Audit

Definitions1
Public names3
Members1
Version26.7.0
Revisiondaab053ee433