Skip to documentation
SLOP

tiny.preserves.observePattern

Reference 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.

No direct callersNo direct callstiny.preservesobservePattern
Static calls · unresolved targets: 0 · external targets: 1.

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

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433