Home / Docs / Standard library / Prelude

infinity

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

una
pub infinity() -> F64
  ensures result.is_infinite() and not result.is_sign_negative()

The positive infinity of F64; -infinity() is the negative one (spec/29 §3).

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.