pub enum ErrorsValidationRawComplex<ErrorValidationReal: Error> {
InvalidRealPart {
source: ErrorValidationReal,
},
InvalidImaginaryPart {
source: ErrorValidationReal,
},
InvalidBothParts {
real_error: ErrorValidationReal,
imag_error: ErrorValidationReal,
},
}
Expand description
Errors that can occur during the validation of a complex number.
This enum is generic over ErrorValidationReal
, which is the error type returned
by validating the real and imaginary parts of the complex number (e.g.,
ErrorsValidationRawReal<f64>
).
It indicates whether the real part, the imaginary part, or both parts failed validation.
Variants§
InvalidRealPart
The real part of the complex number failed validation.
Fields
§
source: ErrorValidationReal
The underlying validation error for the real part.
InvalidImaginaryPart
The imaginary part of the complex number failed validation.
Fields
§
source: ErrorValidationReal
The underlying validation error for the imaginary part.
InvalidBothParts
Both the real and imaginary parts of the complex number failed validation.
Trait Implementations§
Source§impl<ErrorValidationReal: Debug + Error> Debug for ErrorsValidationRawComplex<ErrorValidationReal>
impl<ErrorValidationReal: Debug + Error> Debug for ErrorsValidationRawComplex<ErrorValidationReal>
Source§impl<ErrorValidationReal> Display for ErrorsValidationRawComplex<ErrorValidationReal>
impl<ErrorValidationReal> Display for ErrorsValidationRawComplex<ErrorValidationReal>
Source§impl<ErrorValidationReal> Error for ErrorsValidationRawComplex<ErrorValidationReal>
impl<ErrorValidationReal> Error for ErrorsValidationRawComplex<ErrorValidationReal>
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<ErrorValidationReal> Freeze for ErrorsValidationRawComplex<ErrorValidationReal>where
ErrorValidationReal: Freeze,
impl<ErrorValidationReal> RefUnwindSafe for ErrorsValidationRawComplex<ErrorValidationReal>where
ErrorValidationReal: RefUnwindSafe,
impl<ErrorValidationReal> Send for ErrorsValidationRawComplex<ErrorValidationReal>where
ErrorValidationReal: Send,
impl<ErrorValidationReal> Sync for ErrorsValidationRawComplex<ErrorValidationReal>where
ErrorValidationReal: Sync,
impl<ErrorValidationReal> Unpin for ErrorsValidationRawComplex<ErrorValidationReal>where
ErrorValidationReal: Unpin,
impl<ErrorValidationReal> UnwindSafe for ErrorsValidationRawComplex<ErrorValidationReal>where
ErrorValidationReal: 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