tiny.preserves.observeRecord
Defined in tiny.preserves.
Builds the record <Observe pattern observer> for values whose domain is AnyEmbedded.
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
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |