Skip to documentation
SLOP

tiny.syn.SpanStatus

Reference tiny.syn SpanStatus

Defined in span.storage.

A caller reads it from Storage.status to check sizes and to count dropped lines, as the README example and the tests do.

API (7)

Fields and members

Public fields and members.

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

Source

Source: lib/syn/src/span/storage.zig:31

zig
/// A caller reads it from `Storage.status` to check sizes and to count dropped lines, as the README/// example and the tests do. The value is a copy of the sizes and counters of span storage at one/// moment.pub const Status = struct {    /// The phase of the storage when the copy was taken.    phase: alloc_phase.capacity.Phase,    /// The bytes of the span region, as `Capacity.storage_bytes` gives them.    storage_bytes: usize,    /// The text limit the storage was created with.    max_text_bytes: usize,    /// The number of spans the region holds.    span_capacity: usize,    /// The number of spans held for the current line. The count is zero after a discarded line.    span_count: usize,    /// The high-water mark of spans per line: the most spans any one line has held since the    /// storage was created.    high_water_spans: usize,    /// The number of discarded lines since the storage was created. The count stops at the largest    /// `u64`.    discarded_line_count: u64,};

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

zig
pub const SpanStatus = span.Status;

Also reachable as

span.Status.

Audit

Definitions1
Public names3
Members7
Version26.7.0
Revisiondaab053ee433