pub struct ResultE10 {
pub val: f64,
pub err: f64,
pub e10: i32,
}
Expand description
In some cases, an overflow or underflow can be detected and handled by a function. In this case, it may be possible to return a scaling exponent as well as an error/value pair in order to save the result from exceeding the dynamic range of the built-in types.
Fields§
§val: f64
Contains the value.
err: f64
Contains an estimate of the absolute error in the value.
e10: i32
Exponent field such that the actual result is obtained as result * 10^(e10).
Implementations§
Trait Implementations§
source§impl From<gsl_sf_result_e10_struct> for ResultE10
impl From<gsl_sf_result_e10_struct> for ResultE10
source§fn from(v: gsl_sf_result_e10) -> Self
fn from(v: gsl_sf_result_e10) -> Self
Converts to this type from the input type.
impl Copy for ResultE10
Auto Trait Implementations§
impl RefUnwindSafe for ResultE10
impl Send for ResultE10
impl Sync for ResultE10
impl Unpin for ResultE10
impl UnwindSafe for ResultE10
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