diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:30:28 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-09-29 14:30:28 +0200 |
| commit | 66e86c9693a7184944cdd2a0dbf1514e9d0125dc (patch) | |
| tree | f4710699c0876849a858e764d631d8a8e41b4aca /README.md | |
| parent | 91af268aeb40ba7adc69a6e1acf89a94466ecb5e (diff) | |
| download | ele-66e86c9693a7184944cdd2a0dbf1514e9d0125dc.tar.gz ele-66e86c9693a7184944cdd2a0dbf1514e9d0125dc.zip | |
Preserve out-of-range JSON numbers without panicking
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -77,6 +77,8 @@ Implement `Filterable` for your type, compile the expression once with `Expr::co `Expr::evaluate` is a convenience method for one record: it compiles on every call and returns false if compilation fails. Use `Expr::compile` when errors must be reported. +JSON numbers use `i64`, `u64`, or finite `f64` when representable. If another crate enables `serde_json/arbitrary_precision`, larger values are retained as `Value::JsonNumber` without panicking or converting to infinity. Numeric comparisons against an out-of-range value return false, including `!=`; presence checks and exact bare-literal matching of its JSON number text remain available. This does not provide arbitrary-precision arithmetic. + Bare-literal matching also requires overriding `all_field_values` or `matches_global`; the default searches no values. Override `matches_global` to search borrowed data without building a list of values. `Value::matches_global` provides recursive matching for individual values. ```rust |
