Trait lair::Real[][src]

pub trait Real: Float + Zero + One + NumAssign + Sum {
    fn copysign(self, sign: Self) -> Self;

    #[must_use]
    fn eps() -> Self { ... }
#[must_use] fn sfmin() -> Self { ... } }

A trait for real numbers.

Required methods

fn copysign(self, sign: Self) -> Self[src]

Returns a number composed of the magnitude of self and the sign of sign.

Loading content...

Provided methods

#[must_use]
fn eps() -> Self
[src]

Relative machine precision.

#[must_use]
fn sfmin() -> Self
[src]

Safe minimum, such that its reciprocal does not overflow.

Loading content...

Implementations on Foreign Types

impl Real for f32[src]

fn copysign(self, sign: Self) -> Self[src]

impl Real for f64[src]

fn copysign(self, sign: Self) -> Self[src]

Loading content...

Implementors

Loading content...