pub enum SqrtRealInputErrors<T: NumKernel + 'static> {
NegativeValue {
value: T::RawRealType,
backtrace: Backtrace,
},
ValidationError {
source: RealValueErrors<T::RawRealType>,
},
}
Expand description
Errors that can occur during the computation of the square root of a real number, before the computation of the square root.
Variants§
NegativeValue
The input value is negative.
This error occurs when the input value for the square root computation is negative.
Fields
§
value: T::RawRealType
The negative input value.
ValidationError
The input value (i.e. the value before the computation of the square root) is invalid.
This error occurs when the input value for the square root computation is invalid (i.e. NaN, infinite or sub-normal).
Fields
§
source: RealValueErrors<T::RawRealType>
Trait Implementations§
Source§impl<T: Debug + NumKernel + 'static> Debug for SqrtRealInputErrors<T>where
T::RawRealType: Debug,
impl<T: Debug + NumKernel + 'static> Debug for SqrtRealInputErrors<T>where
T::RawRealType: Debug,
Source§impl<T: NumKernel + 'static> Display for SqrtRealInputErrors<T>where
T::RawRealType: Debug,
impl<T: NumKernel + 'static> Display for SqrtRealInputErrors<T>where
T::RawRealType: Debug,
Source§impl<T: NumKernel + 'static> Error for SqrtRealInputErrors<T>
impl<T: NumKernel + 'static> Error for SqrtRealInputErrors<T>
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()
Source§impl<T: NumKernel + 'static> From<RealValueErrors<<T as NumKernel>::RawRealType>> for SqrtRealInputErrors<T>
impl<T: NumKernel + 'static> From<RealValueErrors<<T as NumKernel>::RawRealType>> for SqrtRealInputErrors<T>
Source§fn from(source: RealValueErrors<T::RawRealType>) -> Self
fn from(source: RealValueErrors<T::RawRealType>) -> Self
Converts to this type from the input type.
Source§impl<T: NumKernel + 'static> From<SqrtRealInputErrors<T>> for SqrtRealErrors<T>
impl<T: NumKernel + 'static> From<SqrtRealInputErrors<T>> for SqrtRealErrors<T>
Source§fn from(source: SqrtRealInputErrors<T>) -> Self
fn from(source: SqrtRealInputErrors<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for SqrtRealInputErrors<T>
impl<T> RefUnwindSafe for SqrtRealInputErrors<T>
impl<T> Send for SqrtRealInputErrors<T>
impl<T> Sync for SqrtRealInputErrors<T>
impl<T> Unpin for SqrtRealInputErrors<T>
impl<T> UnwindSafe for SqrtRealInputErrors<T>
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