pub fn safe_integer(value: i64) -> Result<i64, BoxDynError>Expand description
value, if a JavaScript number can carry it without rounding.
Both backends take and return JavaScript numbers, never BigInt, so an
integer outside ±(2^53 − 1) would come back as a different integer. That
is an error here rather than a silently wrong row.
§Errors
When value is outside ±(2^53 − 1).