pub const fn eq(lhs: f32, rhs: f32) -> boolExpand description
Determines if a 32-bit floating point number is equal to 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
PartialEq 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.