pub enum RecipRealErrors<T: NumKernel + 'static> {
Input {
source: RecipRealInputErrors<T>,
},
Output {
source: RealValueErrors<T::RawRealType>,
},
}
Expand description
Errors that can occur during the computation of the reciprocal of a real number.
Variants§
Input
The input value is invalid.
This error occurs when the input value for the reciprocal computation is invalid.
Fields
§
source: RecipRealInputErrors<T>
The source error that occurred during validation.
Output
The output value is invalid.
This error occurs when the output value of the reciprocal computation is invalid.
Fields
§
source: RealValueErrors<T::RawRealType>
The source error that occurred during validation.
Trait Implementations§
Source§impl<T: Debug + NumKernel + 'static> Debug for RecipRealErrors<T>where
T::RawRealType: Debug,
impl<T: Debug + NumKernel + 'static> Debug for RecipRealErrors<T>where
T::RawRealType: Debug,
Source§impl<T: NumKernel + 'static> Display for RecipRealErrors<T>
impl<T: NumKernel + 'static> Display for RecipRealErrors<T>
Source§impl<T: NumKernel + 'static> Error for RecipRealErrors<T>where
RecipRealInputErrors<T>: Error + 'static,
RealValueErrors<T::RawRealType>: Error + 'static,
Self: Debug + Display,
impl<T: NumKernel + 'static> Error for RecipRealErrors<T>where
RecipRealInputErrors<T>: Error + 'static,
RealValueErrors<T::RawRealType>: Error + 'static,
Self: Debug + Display,
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
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 RecipRealErrors<T>
impl<T: NumKernel + 'static> From<RealValueErrors<<T as NumKernel>::RawRealType>> for RecipRealErrors<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<RecipRealInputErrors<T>> for RecipRealErrors<T>
impl<T: NumKernel + 'static> From<RecipRealInputErrors<T>> for RecipRealErrors<T>
Source§fn from(source: RecipRealInputErrors<T>) -> Self
fn from(source: RecipRealInputErrors<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> !Freeze for RecipRealErrors<T>
impl<T> RefUnwindSafe for RecipRealErrors<T>
impl<T> Send for RecipRealErrors<T>
impl<T> Sync for RecipRealErrors<T>
impl<T> Unpin for RecipRealErrors<T>
impl<T> UnwindSafe for RecipRealErrors<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