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