Home / Docs / Standard library / Prelude

json_number

A function of the prelude, in scope in every module. Edition 0.3, 0.4, 0.5 preview.

una
pub json_number(x: F64) -> Option[Json]

x as a JSON number, None for NaN and the infinities (spec/29 §10).

Specification

Generated from the standard modules of una v0.4.0 (docs/std/listing.json, which is not part of the specification). The specification governs: spec/14 §1.