pub enum LogarithmRealInputErrors<RawReal: RawRealTrait> {
NegativeArgument {
value: RawReal,
backtrace: Backtrace,
},
ZeroArgument {
backtrace: Backtrace,
},
InvalidArgument {
source: <RawReal as RawScalarTrait>::ValidationErrors,
},
}
Expand description
Errors that can occur when computing the logarithm of a real number.
This enum represents the possible errors that can occur when computing the logarithm of a real number. It includes errors for invalid arguments and other validation errors.
§Type Parameters
RawReal
: A type that implements theRawRealTrait
trait. This type parameter is used to specify the numeric type for the computation and its associated raw error type<RawReal as RawScalarTrait>::ValidationErrors
.
§Variants
NegativeArgument
: Indicates that the argument of the function is negative, which is not allowed for real logarithms. This variant includes the value that is out of the domain and a backtrace.ZeroArgument
: Indicates that the argument of the function is zero, which is not allowed for real logarithms. This variant includes a backtrace.InvalidArgument
: Indicates that the argument of the function is invalid. This variant includes the source error that occurred during validation.
Variants§
NegativeArgument
The argument of the function is negative.
This variant indicates that the argument of the function is negative, which is not allowed for real logarithms. It includes the value that is out of the domain and a backtrace.
ZeroArgument
The argument of the function is zero.
This variant indicates that the argument of the function is zero, which is not allowed for real logarithms. It includes a backtrace.
InvalidArgument
The argument of the function is invalid.
This variant indicates that the argument of the function is invalid. It includes the source error that occurred during validation.
Fields
source: <RawReal as RawScalarTrait>::ValidationErrors
The source error that occurred during validation.
Trait Implementations§
Source§impl<RawReal: Debug + RawRealTrait> Debug for LogarithmRealInputErrors<RawReal>
impl<RawReal: Debug + RawRealTrait> Debug for LogarithmRealInputErrors<RawReal>
Source§impl<RawReal> Display for LogarithmRealInputErrors<RawReal>where
RawReal: Display + RawRealTrait,
impl<RawReal> Display for LogarithmRealInputErrors<RawReal>where
RawReal: Display + RawRealTrait,
Source§impl<RawReal: RawRealTrait> Error for LogarithmRealInputErrors<RawReal>
impl<RawReal: RawRealTrait> Error for LogarithmRealInputErrors<RawReal>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Source§fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
fn provide<'_request>(&'_request self, request: &mut Request<'_request>)
error_generic_member_access
)