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>::ValidationErrors
The 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
)