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 theRawRealTraittrait. 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.
Fields
value: RawRealThe value that is out of the domain.
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>::ValidationErrorsThe 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)1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl<RawReal> !Freeze for LogarithmRealInputErrors<RawReal>
impl<RawReal> RefUnwindSafe for LogarithmRealInputErrors<RawReal>where
RawReal: RefUnwindSafe,
impl<RawReal> Send for LogarithmRealInputErrors<RawReal>
impl<RawReal> Sync for LogarithmRealInputErrors<RawReal>
impl<RawReal> Unpin for LogarithmRealInputErrors<RawReal>where
RawReal: Unpin,
impl<RawReal> UnsafeUnpin for LogarithmRealInputErrors<RawReal>where
RawReal: UnsafeUnpin,
impl<RawReal> UnwindSafe for LogarithmRealInputErrors<RawReal>where
RawReal: 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
Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more