pub enum ATanComplexInputErrors<RawComplex: RawComplexTrait> {
ArgumentIsPole {
value: RawComplex,
backtrace: Backtrace,
},
InvalidArgument {
source: <RawComplex as RawScalarTrait>::ValidationErrors,
},
}Expand description
Errors that can occur during the input validation phase when attempting to compute the arctangent of a complex number.
This enum is used as a source for the Input variant of ATanComplexErrors.
It is generic over RawComplex, which must implement RawComplexTrait.
This enum addresses failures in the initial validation of the input complex
number (e.g., components being NaN, Infinity, or subnormal) or if the
argument is a pole for the complex arctangent function (e.g., 0 +/- 1i).
Variants§
ArgumentIsPole
The input complex number is a pole for the arctangent function (e.g., i or -i).
The complex arctangent function is undefined at these points.
Fields
value: RawComplexThe argument value that is a pole.
InvalidArgument
The argument of the function is invalid due to failing general validation checks.
This variant indicates that the argument of the function is invalid w.r.t. the chosen validation policy (e.g. NaN, Infinity). It includes the source error that occurred during validation.
Fields
source: <RawComplex as RawScalarTrait>::ValidationErrorsThe source error that occurred during validation.
Trait Implementations§
Source§impl<RawComplex: Debug + RawComplexTrait> Debug for ATanComplexInputErrors<RawComplex>
impl<RawComplex: Debug + RawComplexTrait> Debug for ATanComplexInputErrors<RawComplex>
Source§impl<RawComplex> Display for ATanComplexInputErrors<RawComplex>where
RawComplex: Debug + RawComplexTrait,
impl<RawComplex> Display for ATanComplexInputErrors<RawComplex>where
RawComplex: Debug + RawComplexTrait,
Source§impl<RawComplex: RawComplexTrait> Error for ATanComplexInputErrors<RawComplex>
impl<RawComplex: RawComplexTrait> Error for ATanComplexInputErrors<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 ATanComplexInputErrors<RawComplex>
impl<RawComplex> RefUnwindSafe for ATanComplexInputErrors<RawComplex>
impl<RawComplex> Send for ATanComplexInputErrors<RawComplex>
impl<RawComplex> Sync for ATanComplexInputErrors<RawComplex>
impl<RawComplex> Unpin for ATanComplexInputErrors<RawComplex>where
RawComplex: Unpin,
impl<RawComplex> UnsafeUnpin for ATanComplexInputErrors<RawComplex>where
RawComplex: UnsafeUnpin,
impl<RawComplex> UnwindSafe for ATanComplexInputErrors<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