Skip to main content

Module value_ops

Module value_ops 

Source
Expand description

Core value operations on nodedb_types::Value: comparison, coercion, truthiness.

Equivalent to json_ops.rs but operates on the internal Value type directly, avoiding the serde_json::Value intermediate. Used by expression evaluation, computed projections, and aggregate expression paths.

Functions§

coerced_eq
Check equality with type coercion.
compare_values
Compare two Values with type coercion.
is_truthy
Check if a Value is truthy (for boolean contexts).
to_value_number
Convert an f64 to a Value, preferring integer representation.
value_to_display_string
Convert a Value to a display string.
value_to_f64
Coerce a Value to f64.