tiny.preserves.observePattern
Defined in tiny.preserves.
Returns the first field of an <Observe pattern observer> record with exactly two fields, and null for any other value.
Source
Source: lib/preserves/src/any.zig:326
zig
/// Returns the first field of an `<Observe pattern observer>` record with exactly two fields, and/// `null` for any other value. Code that handles a subscription calls it for the pattern of an/// `<Observe pattern observer>` record. The returned value shares its storage with `v`.pub fn observePattern(v: AnyValue) ?AnyValue { return any_conversions.observePattern(v);}Source: lib/preserves/src/root.zig:228
zig
pub const observePattern = any.observePattern;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |