Error

Trait Error 

Source
pub trait Error {
    // Required methods
    fn error(self) -> Self;
    fn compl_error(self) -> Self;
    fn inv_error(self) -> Self;
}
Expand description

Error functions.

Required Methods§

Source

fn error(self) -> Self

Compute the error function.

Source

fn compl_error(self) -> Self

Compute the complementary error function.

Source

fn inv_error(self) -> Self

Compute the inverse of the error function.

The implementation is based on a C implementation by Alijah Ahmed.

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.

Implementations on Foreign Types§

Source§

impl Error for f32

Source§

fn error(self) -> Self

Source§

fn compl_error(self) -> Self

Source§

fn inv_error(self) -> Self

Source§

impl Error for f64

Source§

fn error(self) -> Self

Source§

fn compl_error(self) -> Self

Source§

fn inv_error(self) -> Self

Implementors§