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>::ValidationErrorsThe 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)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 ArgInputErrors<RawComplex>
impl<RawComplex> RefUnwindSafe for ArgInputErrors<RawComplex>
impl<RawComplex> Send for ArgInputErrors<RawComplex>
impl<RawComplex> Sync for ArgInputErrors<RawComplex>
impl<RawComplex> Unpin for ArgInputErrors<RawComplex>
impl<RawComplex> UnsafeUnpin for ArgInputErrors<RawComplex>
impl<RawComplex> UnwindSafe for ArgInputErrors<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