pub trait ErfFloat:
Float
+ ApproxInto<usize, RoundToZero>
+ Float {
const SQRT_2_ERFINV_UNITY_MINUS_EPS: Self;
const SQRT_2_MAX_X_FOR_ERF_EPS_1OVER1E3: Self;
const X_FOR_ERF_EPS_1OVER1E3: [Self; 64];
const INVERSED_DX_FOR_ERF_EPS_1OVER1E3: Self;
const Y_FOR_ERF_EPS_1OVER1E3: [Self; 64];
// Required method
fn libm_erf(self) -> Self;
// Provided method
fn erf_eps_1over1e3(self) -> Self { ... }
}
Expand description
Float trait for ErrorFunction, implemented for f32 and f64 only
Required Associated Constants§
const SQRT_2_ERFINV_UNITY_MINUS_EPS: Self
const SQRT_2_MAX_X_FOR_ERF_EPS_1OVER1E3: Self
const X_FOR_ERF_EPS_1OVER1E3: [Self; 64]
const INVERSED_DX_FOR_ERF_EPS_1OVER1E3: Self
const Y_FOR_ERF_EPS_1OVER1E3: [Self; 64]
Required Methods§
Provided Methods§
fn erf_eps_1over1e3(self) -> Self
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.