pub enum ArgInputErrors<RawComplex: RawComplexTrait> {
ValidationError {
source: <RawComplex as RawScalarTrait>::ValidationErrors,
},
Zero {
backtrace: Backtrace,
},
}
Expand description
Errors that can occur specifically during the input validation phase or due to special input values when attempting to compute the argument (principal value) of a complex number.
This enum is used as a source for the ArgErrors::Input
variant and helps categorize
why an input was deemed unsuitable before or during the core argument calculation.
§Generic Parameters
RawComplex
: A type that implementsRawComplexTrait
. This defines the raw error type for the input complex number via<RawComplex as RawScalarTrait>::ValidationErrors
.
Variants§
ValidationError
The input complex number failed basic validation checks.
This error occurs if the input complex number itself is considered invalid
according to the validation policy (e.g., StrictFinitePolicy
),
such as containing NaN or Infinity components, before the argument calculation
is attempted.
Fields
source: <RawComplex as RawScalarTrait>::ValidationErrors
The underlying validation error from the complex number type.
This provides more specific details about why the complex number’s components (real or imaginary parts) were considered invalid.
Zero
The input complex number is zero.
The argument of zero is undefined. This error indicates that the input
value was 0 + 0i
.
Trait Implementations§
Source§impl<RawComplex: Debug + RawComplexTrait> Debug for ArgInputErrors<RawComplex>
impl<RawComplex: Debug + RawComplexTrait> Debug for ArgInputErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Display for ArgInputErrors<RawComplex>
impl<RawComplex: RawComplexTrait> Display for ArgInputErrors<RawComplex>
Source§impl<RawComplex: RawComplexTrait> Error for ArgInputErrors<RawComplex>
impl<RawComplex: RawComplexTrait> Error for ArgInputErrors<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
)