pub enum AbsInputErrors<RawScalar: RawScalarTrait> {
ValidationError {
source: <RawScalar as RawScalarTrait>::ValidationErrors,
},
}Expand description
Errors that can occur during the input validation phase when attempting to compute the absolute value of a number.
This enum is used as a source for the Input variant of composed error types like
AbsRealErrors or AbsComplexErrors. It is generic over RawScalar, which
represents the specific scalar type being validated (e.g., f64, Complex<f64>, etc.).
Variants§
ValidationError
The input value failed basic validation checks.
This error occurs if the input value itself is considered invalid
according to the validation policy (e.g., StrictFinitePolicy),
such as being NaN or Infinity, before the absolute value calculation
is attempted.
Fields
source: <RawScalar as RawScalarTrait>::ValidationErrorsThe underlying validation error from the input type.
This provides more specific details about why the input value was considered invalid.
Trait Implementations§
Source§impl<RawScalar: Debug + RawScalarTrait> Debug for AbsInputErrors<RawScalar>
impl<RawScalar: Debug + RawScalarTrait> Debug for AbsInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Display for AbsInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Display for AbsInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Error for AbsInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Error for AbsInputErrors<RawScalar>
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<RawScalar> Freeze for AbsInputErrors<RawScalar>
impl<RawScalar> RefUnwindSafe for AbsInputErrors<RawScalar>
impl<RawScalar> Send for AbsInputErrors<RawScalar>
impl<RawScalar> Sync for AbsInputErrors<RawScalar>
impl<RawScalar> Unpin for AbsInputErrors<RawScalar>
impl<RawScalar> UnsafeUnpin for AbsInputErrors<RawScalar>
impl<RawScalar> UnwindSafe for AbsInputErrors<RawScalar>
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