pub enum PowComplexBaseRealExponentInputErrors<RawComplex: RawComplexTrait> {
InvalidBase {
source: <RawComplex as RawScalarTrait>::ValidationErrors,
},
InvalidExponent {
source: <RawComplex::RawReal as RawScalarTrait>::ValidationErrors,
},
InvalidBaseAndExponent {
error_base: <RawComplex as RawScalarTrait>::ValidationErrors,
error_exponent: <RawComplex::RawReal as RawScalarTrait>::ValidationErrors,
backtrace: Backtrace,
},
ZeroBaseNegativeExponent {
exponent: RawComplex::RawReal,
backtrace: Backtrace,
},
}
Expand description
Errors that can occur during input validation when computing base^exponent
where the base is a complex number and the exponent is a real number.
This enum is typically used as the InputErrorSource
for a FunctionErrors
wrapper, such as PowComplexBaseRealExponentErrors
. It is generic over
ComplexType
, which must implement ComplexScalar
.
Variants§
InvalidBase
The input complex base value failed validation according to the active policy.
For example, using StrictFinitePolicy
,
this would trigger if any part of the complex base is NaN or Infinity.
Fields
source: <RawComplex as RawScalarTrait>::ValidationErrors
The underlying validation error for the complex base.
The type of this field is <RawComplex as RawScalarTrait>::ValidationErrors
.
InvalidExponent
The input real 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: <RawComplex::RawReal as RawScalarTrait>::ValidationErrors
The underlying validation error for the real exponent.
The type of this field is <RawReal as RawScalarTrait>::ValidationErrors
.
InvalidBaseAndExponent
The input complex base value and the real exponent failed validation according to the active policy.
For example, using StrictFinitePolicy
,
this would trigger if any part of the complex base is NaN or Infinity.
Fields
error_base: <RawComplex as RawScalarTrait>::ValidationErrors
The source error that occurred during validation for the base.
error_exponent: <RawComplex::RawReal as RawScalarTrait>::ValidationErrors
The source error that occurred during validation for the exponent.
ZeroBaseNegativeExponent
The complex base is zero, and the real exponent is negative. This operation results in division by zero.
Trait Implementations§
Source§impl<RawComplex: Debug + RawComplexTrait> Debug for PowComplexBaseRealExponentInputErrors<RawComplex>
impl<RawComplex: Debug + RawComplexTrait> Debug for PowComplexBaseRealExponentInputErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Display for PowComplexBaseRealExponentInputErrors<RawComplex>
impl<RawComplex: RawComplexTrait> Display for PowComplexBaseRealExponentInputErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Error for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarTrait>::ValidationErrors: Error + 'static,
<RawComplex::RawReal as RawScalarTrait>::ValidationErrors: Error + 'static,
Self: Debug + Display,
impl<RawComplex: RawComplexTrait> Error for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarTrait>::ValidationErrors: Error + 'static,
<RawComplex::RawReal as RawScalarTrait>::ValidationErrors: Error + 'static,
Self: Debug + Display,
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
)