Skip to documentation
SLOP

tiny.preserves.valueEqual

Reference tiny.preserves valueEqual

Defined in tiny.preserves.

Returns whether a and b are equal, the same answer as a.eql(b).

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

Source

Source: lib/preserves/src/any.zig:70

zig
/// Returns whether `a` and `b` are equal, the same answer as `a.eql(b)`. Code that needs value/// equality as a plain function passes this. Sets and dictionaries are equal when they hold the/// same elements or entries, whatever their storage order. Two embedded values are equal only when/// they share one table of equality, hash and order functions and that table's equality holds, or/// when both lack a table and point to the same payload. The call allocates nothing. Its cost on/// two sets grows with the square of their size.pub fn valueEqual(a: AnyValue, b: AnyValue) bool {    return a.eql(b);}

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

zig
pub const valueEqual = any.valueEqual;

Audit

Definitions1
Public names1
Members0
Version26.7.0
Revisiondaab053ee433