Constant kvarn::prelude::compact_str::core::f32::INFINITY

1.0.0 · source ·
pub const INFINITY: f32 = f32::INFINITY; // +Inff32
👎Deprecating in a future Rust version: replaced by the <code>INFINITY</code> associated constant on <code>f32</code>
Available on non-crate feature miri-test-libstd only.
Expand description

Infinity (∞). Use f32::INFINITY instead.

Examples

// deprecated way
let inf = std::f32::INFINITY;

// intended way
let inf = f32::INFINITY;