Skip to documentation
SLOP

tiny.preserves.observeRecord

Reference tiny.preserves observeRecord

Defined in tiny.preserves.

Builds the record <Observe pattern observer> for values whose domain is AnyEmbedded.

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

Source

Source: lib/preserves/src/root.zig:240

zig
/// Builds the record `<Observe pattern observer>` for values whose domain is `AnyEmbedded`. Code/// that asks for matches of a pattern calls it for a record with its label spelled once, in/// `symbols`. The label is a new copy of the symbol `Observe`. An observer other than an embedded/// value moves into a new allocation. The record then holds that observer as an embedded value that/// compares, hashes, frees and copies it as a value. An observer that is already an embedded value/// goes into the record unchanged. The record takes ownership of the pattern and the observer, so/// `Value.deinit` frees the record with both. On `error.OutOfMemory` the call frees what it/// allocated, and the caller still owns the pattern and the observer.pub const observeRecord = any_records.observeRecord;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433