Skip to main content

FpResult

Type Alias FpResult 

Source
pub type FpResult<T> = Result<Rounded<T>, FpError>;
Expand description

The result of a floating point operation: a correctly-rounded value (which may be an infinity produced as a value), or an FpError when the operation cannot proceed.

Aliased Type§

pub enum FpResult<T> {
    Ok(Approximation<T, Rounding>),
    Err(FpError),
}

Variants§

§1.0.0

Ok(Approximation<T, Rounding>)

Contains the success value

§1.0.0

Err(FpError)

Contains the error value