Trait special::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 code is based on a C implementation by Alijah Ahmed.

Object Safety§

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§