Trait ErrorBounds

Source
pub trait ErrorBounds: Round {
    // Required method
    fn error_bounds<const B: Word>(
        f: &FBig<Self, B>,
    ) -> (FBig<Self, B>, FBig<Self, B>, bool, bool);
}
Expand description

A trait providing the function to retrieve the error bounds of the rounded value.

Required Methods§

Source

fn error_bounds<const B: Word>( f: &FBig<Self, B>, ) -> (FBig<Self, B>, FBig<Self, B>, bool, bool)

Given a floating point number f, the output (L, R, incl_L, incl_R) represents the relative error range with left bound f - L and right bound f + R. The two boolean values incl_L and incl_R represents whether the bounds f - L and f + R are inclusive respectively.

When the input number has unlimited precision, the output must be (ZERO, ZERO, true, true).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§