pub enum SqrtComplexInputErrors<RawComplex: RawComplexTrait> {
ValidationError {
source: <RawComplex as RawScalarTrait>::ValidationErrors,
},
}Expand description
Errors that can occur during the input validation phase when computing the square root of a complex number.
This enum is used as the source for the Input variant of SqrtComplexErrors.
It is generic over RawComplex: RawComplexTrait.
§Variants
Self::ValidationError: The input complex number failed basic validation checks (e.g., its components are NaN, infinite, or subnormal) according to the validation policy.
Variants§
ValidationError
The input complex number failed basic validation checks (e.g., its components are NaN, infinite, or subnormal).
This error occurs if the input complex value itself is considered invalid
according to the validation policy (e.g., StrictFinitePolicy),
before any domain-specific checks for the complex square root operation are performed.
It signifies that the real or imaginary part (or both) does not meet fundamental validity criteria.
Fields
source: <RawComplex as RawScalarTrait>::ValidationErrorsThe detailed source error from the raw complex number’s validation.
This field encapsulates the specific error of type <RawComplex as RawScalarTrait>::ValidationErrors
that was reported during the validation of the input complex number’s components.
Trait Implementations§
Source§impl<RawComplex: Debug + RawComplexTrait> Debug for SqrtComplexInputErrors<RawComplex>
impl<RawComplex: Debug + RawComplexTrait> Debug for SqrtComplexInputErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Display for SqrtComplexInputErrors<RawComplex>
impl<RawComplex: RawComplexTrait> Display for SqrtComplexInputErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Error for SqrtComplexInputErrors<RawComplex>
impl<RawComplex: RawComplexTrait> Error for SqrtComplexInputErrors<RawComplex>
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()
Auto Trait Implementations§
impl<RawComplex> Freeze for SqrtComplexInputErrors<RawComplex>
impl<RawComplex> RefUnwindSafe for SqrtComplexInputErrors<RawComplex>
impl<RawComplex> Send for SqrtComplexInputErrors<RawComplex>
impl<RawComplex> Sync for SqrtComplexInputErrors<RawComplex>
impl<RawComplex> Unpin for SqrtComplexInputErrors<RawComplex>
impl<RawComplex> UnsafeUnpin for SqrtComplexInputErrors<RawComplex>
impl<RawComplex> UnwindSafe for SqrtComplexInputErrors<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
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