Skip to main content

Erf

Trait Erf 

Source
pub trait Erf: Sized {
    type Output;

    // Required methods
    fn erf(self) -> Self::Output;
    fn erfc(self) -> Self::Output;
}
Expand description

The error function and its complement.

Implementations for f32/f64 require the libm cargo feature (std’s erf is still unstable, so there is nothing to delegate to otherwise).

Required Associated Types§

Source

type Output

The (owned) result type.

Required Methods§

Source

fn erf(self) -> Self::Output

The error function erf(self).

Source

fn erfc(self) -> Self::Output

The complementary error function 1 - erf(self).

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§