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>::ValidationErrorsThe 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>::ValidationErrorsThe underlying validation error for the exponent.
The type of this field is <RawReal as RawScalarTrait>::ValidationErrors.
InvalidBaseAndExponent
Both the base and the exponent are invalid according to the validation policy.
This error occurs when both input values fail validation checks simultaneously.
Fields
error_base: <RawReal as RawScalarTrait>::ValidationErrorsThe source error that occurred during validation for the base.
error_exponent: <RawReal as RawScalarTrait>::ValidationErrorsThe 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)1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl<RawReal: RawRealTrait> From<PowRealBaseRealExponentInputErrors<RawReal>> for PowRealBaseRealExponentErrors<RawReal>
impl<RawReal: RawRealTrait> From<PowRealBaseRealExponentInputErrors<RawReal>> for PowRealBaseRealExponentErrors<RawReal>
Source§fn from(source: PowRealBaseRealExponentInputErrors<RawReal>) -> Self
fn from(source: PowRealBaseRealExponentInputErrors<RawReal>) -> Self
Auto Trait Implementations§
impl<RawReal> !Freeze for PowRealBaseRealExponentInputErrors<RawReal>
impl<RawReal> RefUnwindSafe for PowRealBaseRealExponentInputErrors<RawReal>where
RawReal: RefUnwindSafe,
impl<RawReal> Send for PowRealBaseRealExponentInputErrors<RawReal>
impl<RawReal> Sync for PowRealBaseRealExponentInputErrors<RawReal>
impl<RawReal> Unpin for PowRealBaseRealExponentInputErrors<RawReal>where
RawReal: Unpin,
impl<RawReal> UnsafeUnpin for PowRealBaseRealExponentInputErrors<RawReal>where
RawReal: UnsafeUnpin,
impl<RawReal> UnwindSafe for PowRealBaseRealExponentInputErrors<RawReal>where
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