Module policies

Module policies 

Source
Expand description

Validation policies that define how numerical values are checked. Validation policies for scalar types.

This module provides the validation policies that determine how scalar values are checked for validity. The primary policy is StrictFinitePolicy, which ensures values are finite and not subnormal.

Structs§

DebugValidationPolicy
A validation policy that is active only in debug builds.
StrictFinitePolicy
A validation policy that checks for strict finiteness.

Functions§

validate_in_debug
Validates a value using the given policy, but only in debug builds. In release builds, this function is a no-op and should be optimized away.

Type Aliases§

Native64RawComplexStrictFinitePolicy
A type alias for a validation policy that enforces strict finiteness for the raw num::Complex<f64> type.
Native64RawRealStrictFinitePolicy
A type alias for a validation policy that enforces strict finiteness for the raw f64 type.