pub enum TanHRealInputErrors<RawReal: RawRealTrait> {
InvalidArgument {
source: <RawReal as RawScalarTrait>::ValidationErrors,
},
}
Expand description
Errors that can occur when computing the hyperbolic tangent of a real number.
This enum covers errors related to invalid input arguments (e.g., NaN, infinity) as determined by the validation policy for real numbers.
§Type Parameters
RawReal
: The real numeric type (e.g.,f64
) for the computation, implementingRawRealTrait
. The type<RawReal as RawScalarTrait>::ValidationErrors
is used for underlying validation error details.
§Variants
InvalidArgument
: The input argument is invalid (e.g., NaN or infinity). Wraps the source error from the validation process.
Variants§
InvalidArgument
The input argument is invalid (e.g., NaN or infinity).
This error is raised if the input value fails the validation
(using the chosen implementation of ValidationPolicy
).
It contains the underlying error from the validation mechanism.
Fields
§
source: <RawReal as RawScalarTrait>::ValidationErrors
The source error that occurred during validation.
Trait Implementations§
Source§impl<RawReal: Debug + RawRealTrait> Debug for TanHRealInputErrors<RawReal>
impl<RawReal: Debug + RawRealTrait> Debug for TanHRealInputErrors<RawReal>
Source§impl<RawReal: RawRealTrait> Display for TanHRealInputErrors<RawReal>
impl<RawReal: RawRealTrait> Display for TanHRealInputErrors<RawReal>
Source§impl<RawReal: RawRealTrait> Error for TanHRealInputErrors<RawReal>
impl<RawReal: RawRealTrait> Error for TanHRealInputErrors<RawReal>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
🔬This is a nightly-only experimental API. (
error_generic_member_access
)Provides type-based access to context intended for error reports. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<RawReal> !Freeze for TanHRealInputErrors<RawReal>
impl<RawReal> RefUnwindSafe for TanHRealInputErrors<RawReal>where
RawReal: RefUnwindSafe,
impl<RawReal> Send for TanHRealInputErrors<RawReal>
impl<RawReal> Sync for TanHRealInputErrors<RawReal>
impl<RawReal> Unpin for TanHRealInputErrors<RawReal>where
RawReal: Unpin,
impl<RawReal> UnwindSafe for TanHRealInputErrors<RawReal>where
RawReal: UnwindSafe,
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
Mutably borrows from an owned value. Read more