Skip to main content

logos_i64_key_of_f64

Function logos_i64_key_of_f64 

Source
pub fn logos_i64_key_of_f64(f: f64) -> Option<i64>
Expand description

Numeric-unified map key: a Float used to index an Int-keyed map matches the Int key i iff the float is exactly i (integral and in i64 range) — the compiled mirror of the interpreter’s 1 == 1.0 key coercion. A non-integral float (1.5) matches no Int key.