alloy::core::f32

Function lt

source
pub const fn lt(lhs: f32, rhs: f32) -> bool
Expand description

Determines if a 32-bit floating point number is less than another at compile-time.

This function is not recommended in general code, since its performance characteristics will not be equivalent to the standard library’s PartialOrd implementation. However it is useful for const contexts so that it can be used in assert-like situations.

§Parameters

  • lhs - The left-hand side of the comparison.
  • rhs - The right-hand side of the comparison.