pub enum ComplexValueErrors<RealType, ComplexType> {
InvalidRealPart {
value: ComplexType,
real_part_error: RealValueErrors<RealType>,
},
InvalidImaginaryPart {
value: ComplexType,
imaginary_part_error: RealValueErrors<RealType>,
},
}
Expand description
Errors that can be generated from the validation of a complex number.
Variants§
InvalidRealPart
The real part is invalid.
This error occurs when the real part of the complex number is invalid.
Fields
§
value: ComplexType
The complex value that caused the error.
§
real_part_error: RealValueErrors<RealType>
The error that occurred while validating the real part.
InvalidImaginaryPart
The imaginary part is invalid.
This error occurs when the imaginary part of the complex number is invalid.
Fields
§
value: ComplexType
The complex value that caused the error.
§
imaginary_part_error: RealValueErrors<RealType>
The error that occurred while validating the imaginary part.
Trait Implementations§
Source§impl<RealType: Debug, ComplexType: Debug> Debug for ComplexValueErrors<RealType, ComplexType>
impl<RealType: Debug, ComplexType: Debug> Debug for ComplexValueErrors<RealType, ComplexType>
Source§impl<RealType, ComplexType> Display for ComplexValueErrors<RealType, ComplexType>where
ComplexType: Debug,
impl<RealType, ComplexType> Display for ComplexValueErrors<RealType, ComplexType>where
ComplexType: Debug,
Source§impl<RealType, ComplexType> Error for ComplexValueErrors<RealType, ComplexType>
impl<RealType, ComplexType> Error for ComplexValueErrors<RealType, ComplexType>
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<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<ComplexValueErrors<<T as NumKernel>::RawRealType, <T as NumKernel>::RawComplexType>> for RecipComplexInputErrors<T>
impl<T: NumKernel + 'static> From<ComplexValueErrors<<T as NumKernel>::RawRealType, <T as NumKernel>::RawComplexType>> for RecipComplexInputErrors<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<ComplexValueErrors<<T as NumKernel>::RawRealType, <T as NumKernel>::RawComplexType>> for SqrtComplexErrors<T>
impl<T: NumKernel + 'static> From<ComplexValueErrors<<T as NumKernel>::RawRealType, <T as NumKernel>::RawComplexType>> for SqrtComplexErrors<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<ComplexValueErrors<<T as NumKernel>::RawRealType, <T as NumKernel>::RawComplexType>> for SqrtComplexInputErrors<T>
impl<T: NumKernel + 'static> From<ComplexValueErrors<<T as NumKernel>::RawRealType, <T as NumKernel>::RawComplexType>> for SqrtComplexInputErrors<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.
Auto Trait Implementations§
impl<RealType, ComplexType> !Freeze for ComplexValueErrors<RealType, ComplexType>
impl<RealType, ComplexType> RefUnwindSafe for ComplexValueErrors<RealType, ComplexType>where
ComplexType: RefUnwindSafe,
RealType: RefUnwindSafe,
impl<RealType, ComplexType> Send for ComplexValueErrors<RealType, ComplexType>
impl<RealType, ComplexType> Sync for ComplexValueErrors<RealType, ComplexType>
impl<RealType, ComplexType> Unpin for ComplexValueErrors<RealType, ComplexType>
impl<RealType, ComplexType> UnwindSafe for ComplexValueErrors<RealType, ComplexType>where
ComplexType: UnwindSafe,
RealType: 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