pub enum PowComplexBaseRealExponentInputErrors<RawComplex: RawComplexTrait> {
InvalidBase {
source: <RawComplex as RawScalarValidate>::ValidationError,
},
InvalidExponent {
source: <RawComplex::RawReal as RawScalarValidate>::ValidationError,
},
InvalidBaseAndExponent {
error_base: <RawComplex as RawScalarValidate>::ValidationError,
error_exponent: <RawComplex::RawReal as RawScalarValidate>::ValidationError,
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 RawScalarValidate>::ValidationErrorThe underlying validation error for the complex base.
The type of this field is <RawComplex as RawScalarValidate>::ValidationError.
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 RawScalarValidate>::ValidationErrorThe underlying validation error for the real exponent.
The type of this field is <RawReal as RawScalarValidate>::ValidationError.
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 RawScalarValidate>::ValidationErrorThe source error that occurred during validation for the base.
error_exponent: <RawComplex::RawReal as RawScalarValidate>::ValidationErrorThe 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 RawScalarValidate>::ValidationError: Error + 'static,
<RawComplex::RawReal as RawScalarValidate>::ValidationError: Error + 'static,
Self: Debug + Display,
impl<RawComplex: RawComplexTrait> Error for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarValidate>::ValidationError: Error + 'static,
<RawComplex::RawReal as RawScalarValidate>::ValidationError: 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)1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl<RawComplex: RawComplexTrait> From<PowComplexBaseRealExponentInputErrors<RawComplex>> for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex: RawComplexTrait> From<PowComplexBaseRealExponentInputErrors<RawComplex>> for PowComplexBaseRealExponentErrors<RawComplex>
Source§fn from(source: PowComplexBaseRealExponentInputErrors<RawComplex>) -> Self
fn from(source: PowComplexBaseRealExponentInputErrors<RawComplex>) -> Self
Auto Trait Implementations§
impl<RawComplex> !Freeze for PowComplexBaseRealExponentInputErrors<RawComplex>
impl<RawComplex> RefUnwindSafe for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarValidate>::ValidationError: RefUnwindSafe,
<<RawComplex as RawComplexTrait>::RawReal as RawScalarValidate>::ValidationError: RefUnwindSafe,
<RawComplex as RawComplexTrait>::RawReal: RefUnwindSafe,
impl<RawComplex> Send for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarValidate>::ValidationError: Send,
<<RawComplex as RawComplexTrait>::RawReal as RawScalarValidate>::ValidationError: Send,
<RawComplex as RawComplexTrait>::RawReal: Send,
impl<RawComplex> Sync for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarValidate>::ValidationError: Sync,
<<RawComplex as RawComplexTrait>::RawReal as RawScalarValidate>::ValidationError: Sync,
<RawComplex as RawComplexTrait>::RawReal: Sync,
impl<RawComplex> Unpin for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarValidate>::ValidationError: Unpin,
<<RawComplex as RawComplexTrait>::RawReal as RawScalarValidate>::ValidationError: Unpin,
<RawComplex as RawComplexTrait>::RawReal: Unpin,
impl<RawComplex> UnsafeUnpin for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarValidate>::ValidationError: UnsafeUnpin,
<<RawComplex as RawComplexTrait>::RawReal as RawScalarValidate>::ValidationError: UnsafeUnpin,
<RawComplex as RawComplexTrait>::RawReal: UnsafeUnpin,
impl<RawComplex> UnwindSafe for PowComplexBaseRealExponentInputErrors<RawComplex>where
<RawComplex as RawScalarValidate>::ValidationError: UnwindSafe,
<<RawComplex as RawComplexTrait>::RawReal as RawScalarValidate>::ValidationError: UnwindSafe,
<RawComplex as RawComplexTrait>::RawReal: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more