pub enum PowRealBaseRealExponentInputErrors<RawReal: RawRealTrait> {
NegativeBase {
base: RawReal,
exponent: RawReal,
backtrace: Backtrace,
},
InvalidBase {
source: <RawReal as RawScalarTrait>::ValidationErrors,
},
InvalidExponent {
source: <RawReal as RawScalarTrait>::ValidationErrors,
},
InvalidBaseAndExponent {
error_base: <RawReal as RawScalarTrait>::ValidationErrors,
error_exponent: <RawReal as RawScalarTrait>::ValidationErrors,
backtrace: Backtrace,
},
}
Expand description
Errors that can occur during input validation when computing base^exponent
where both the base and exponent are real numbers.
This enum is typically used as the InputErrorSource
for a FunctionErrors
wrapper, such as PowRealBaseRealExponentErrors
. It is generic over
RawReal
, which must implement RawRealTrait
.
Variants§
NegativeBase
The base is negative, and the exponent is a non-integer real number. This operation is undefined in the real domain and typically results in a complex number or NaN.
InvalidBase
The input base value failed validation according to the active policy.
For example, using StrictFinitePolicy
,
this would trigger if the base is NaN or Infinity.
Fields
source: <RawReal as RawScalarTrait>::ValidationErrors
The underlying validation error for the base.
The type of this field is <RawReal as RawScalarTrait>::ValidationErrors
.
InvalidExponent
The input exponent value failed validation according to the active policy.
For example, using StrictFinitePolicy
,
this would trigger if the exponent is NaN or Infinity.
Fields
source: <RawReal as RawScalarTrait>::ValidationErrors
The underlying validation error for the exponent.
The type of this field is <RawReal as RawScalarTrait>::ValidationErrors
.
InvalidBaseAndExponent
Fields
error_base: <RawReal as RawScalarTrait>::ValidationErrors
The source error that occurred during validation for the base.
error_exponent: <RawReal as RawScalarTrait>::ValidationErrors
The source error that occurred during validation for the exponent.
Trait Implementations§
Source§impl<RawReal: Debug + RawRealTrait> Debug for PowRealBaseRealExponentInputErrors<RawReal>
impl<RawReal: Debug + RawRealTrait> Debug for PowRealBaseRealExponentInputErrors<RawReal>
Source§impl<RawReal> Display for PowRealBaseRealExponentInputErrors<RawReal>where
RawReal: Display + RawRealTrait,
impl<RawReal> Display for PowRealBaseRealExponentInputErrors<RawReal>where
RawReal: Display + RawRealTrait,
Source§impl<RawReal: RawRealTrait> Error for PowRealBaseRealExponentInputErrors<RawReal>
impl<RawReal: RawRealTrait> Error for PowRealBaseRealExponentInputErrors<RawReal>
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
)