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
sourceimpl From<gsl_sf_result_e10_struct> for ResultE10
impl From<gsl_sf_result_e10_struct> for ResultE10
sourcefn from(v: gsl_sf_result_e10) -> Self
fn from(v: gsl_sf_result_e10) -> Self
Performs the conversion.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more