aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:30:28 +0200
committerOnur Gündüz <ogunduz@gmail.com>2026-09-29 14:30:28 +0200
commit66e86c9693a7184944cdd2a0dbf1514e9d0125dc (patch)
treef4710699c0876849a858e764d631d8a8e41b4aca /README.md
parent91af268aeb40ba7adc69a6e1acf89a94466ecb5e (diff)
downloadele-66e86c9693a7184944cdd2a0dbf1514e9d0125dc.tar.gz
ele-66e86c9693a7184944cdd2a0dbf1514e9d0125dc.zip
Preserve out-of-range JSON numbers without panicking
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/README.md b/README.md
index 872c0eb..83757eb 100644
--- a/README.md
+++ b/README.md
@@ -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