pub enum ExpInputErrors<RawScalar: RawScalarTrait> {
InvalidExponent {
source: <RawScalar as RawScalarTrait>::ValidationErrors,
},
}Expand description
Errors that can occur during the input validation phase when attempting to compute the exponential of a number.
This enum is used as a source for the Input variant of ExpErrors.
It is generic over RawScalar: RawScalarTrait, where RawScalar is the type of the
number for which the exponential is being computed. The source field in the
InvalidExponent variant will be of type
<RawScalar as RawScalarTrait>::ValidationErrors.
Variants§
InvalidExponent
The input exponent failed validation according to the active policy.
This error typically occurs if the input value for the exponential computation
(the exponent) failed initial validation checks. For example, using
StrictFinitePolicy, this would
trigger if the exponent is NaN, Infinity, or (for f64) subnormal.
Fields
source: <RawScalar as RawScalarTrait>::ValidationErrorsThe underlying validation error from the input type.
This provides more specific details about why the input exponent
was considered invalid by the validation policy. The type of this field
is <RawScalar as RawScalarTrait>::ValidationErrors.
Trait Implementations§
Source§impl<RawScalar: Debug + RawScalarTrait> Debug for ExpInputErrors<RawScalar>
impl<RawScalar: Debug + RawScalarTrait> Debug for ExpInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Display for ExpInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Display for ExpInputErrors<RawScalar>
Source§impl<RawScalar: RawScalarTrait> Error for ExpInputErrors<RawScalar>
impl<RawScalar: RawScalarTrait> Error for ExpInputErrors<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 ExpInputErrors<RawScalar>
impl<RawScalar> RefUnwindSafe for ExpInputErrors<RawScalar>
impl<RawScalar> Send for ExpInputErrors<RawScalar>
impl<RawScalar> Sync for ExpInputErrors<RawScalar>
impl<RawScalar> Unpin for ExpInputErrors<RawScalar>
impl<RawScalar> UnsafeUnpin for ExpInputErrors<RawScalar>
impl<RawScalar> UnwindSafe for ExpInputErrors<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