pub enum PowComplexBaseRealExponentErrors<RawComplex: RawComplexTrait> {
Input {
source: PowComplexBaseRealExponentInputErrors<RawComplex>,
},
Output {
source: <RawComplex as RawScalarTrait>::ValidationErrors,
},
}
Expand description
Errors that can occur when computing base^exponent
where the base is complex and the exponent is real.
This type represents failures from Pow::try_pow()
for complex base and real exponent.
It is generic over RawComplex: RawComplexTrait
and RawReal: RawRealTrait
.
- The
Input
variant wrapsPowComplexBaseRealExponentInputErrors<RawComplex>
. - The
Output
variant wraps<RawComplex as RawScalarTrait>::ValidationErrors
for issues with the computed result.
Variants§
Input
The input value is invalid.
Fields
§
source: PowComplexBaseRealExponentInputErrors<RawComplex>
The source error that occurred during validation.
Output
The output value is invalid.
Fields
§
source: <RawComplex as RawScalarTrait>::ValidationErrors
The source error that occurred during validation.
Trait Implementations§
Source§impl<RawComplex: Debug + RawComplexTrait> Debug for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex: Debug + RawComplexTrait> Debug for PowComplexBaseRealExponentErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Display for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex: RawComplexTrait> Display for PowComplexBaseRealExponentErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Error for PowComplexBaseRealExponentErrors<RawComplex>where
PowComplexBaseRealExponentInputErrors<RawComplex>: Error + 'static,
<RawComplex as RawScalarTrait>::ValidationErrors: Error + 'static,
Self: Debug + Display,
impl<RawComplex: RawComplexTrait> Error for PowComplexBaseRealExponentErrors<RawComplex>where
PowComplexBaseRealExponentInputErrors<RawComplex>: Error + 'static,
<RawComplex as RawScalarTrait>::ValidationErrors: Error + 'static,
Self: Debug + Display,
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type-based access to context intended for error reports. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: 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
Converts to this type from the input type.
Auto Trait Implementations§
impl<RawComplex> !Freeze for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex> RefUnwindSafe for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex> Send for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex> Sync for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex> Unpin for PowComplexBaseRealExponentErrors<RawComplex>
impl<RawComplex> UnwindSafe for PowComplexBaseRealExponentErrors<RawComplex>
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
Mutably borrows from an owned value. Read more