Crate floatguard

Source

Macros§

assign_operation
binary_operation
Defines a binary operation for GuardedF64 with the specified trait and method.
copy_const_value
Macro to define constants in GuardedF64 that mirror the constants in f64.
math
unary_operation
Macro to implement unary operations for GuardedF64 and UnguardedF64.

Structs§

GuardedF32
Represents a checked floating-point number that ensures it is neither NaN nor infinite.
GuardedF64
Represents a checked floating-point number that ensures it is neither NaN nor infinite.
UnguardedF32
Represents a checked floating-point number that ensures it is neither NaN nor infinite.
UnguardedF64
Represents a checked floating-point number that ensures it is neither NaN nor infinite.

Enums§

FloatError
An error occurred while processing a floating-point value, indicating that