pub enum ExpInputErrors<RawScalar: RawScalarTrait> {
InvalidExponent {
source: <RawScalar as RawScalarTrait>::ValidationErrors,
},
}
Expand description
Errors that can occur during the input validation phase when attempting to compute the exponential of a number.
This enum is used as a source for the Input
variant of ExpErrors
.
It is generic over RawScalar: RawScalarTrait
, where RawScalar
is the type of the
number for which the exponential is being computed. The source
field in the
InvalidExponent
variant will be of type
<RawScalar as RawScalarTrait>::ValidationErrors
.
Variants§
InvalidExponent
The input exponent failed validation according to the active policy.
This error typically occurs if the input value for the exponential computation
(the exponent) failed initial validation checks. For example, using
StrictFinitePolicy
, this would
trigger if the exponent is NaN, Infinity, or (for f64
) subnormal.
Fields
source: <RawScalar as RawScalarTrait>::ValidationErrors
The underlying validation error from the input type.
This provides more specific details about why the input exponent
was considered invalid by the validation policy. The type of this field
is <RawScalar as RawScalarTrait>::ValidationErrors
.
Trait Implementations§
Source§impl<RawScalar: Debug + RawScalarTrait> Debug for ExpInputErrors<RawScalar>
impl<RawScalar: Debug + RawScalarTrait> Debug for ExpInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Display for ExpInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Display for ExpInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Error for ExpInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Error for ExpInputErrors<RawScalar>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
error_generic_member_access
)