SpecialValuesDeci

Trait SpecialValuesDeci 

Source
pub trait SpecialValuesDeci {
    // Required methods
    fn pi(prec: u32) -> Self;
    fn nan(prec: u32) -> Self;
    fn inf(prec: u32) -> Self;
}

Required Methods§

Source

fn pi(prec: u32) -> Self

Source

fn nan(prec: u32) -> Self

Source

fn inf(prec: u32) -> 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.

Implementations on Foreign Types§

Source§

impl SpecialValuesDeci for f32

Source§

fn pi(_: u32) -> Self

Source§

fn nan(_: u32) -> Self

Source§

fn inf(_: u32) -> Self

Source§

impl SpecialValuesDeci for f64

Source§

fn pi(_: u32) -> Self

Source§

fn nan(_: u32) -> Self

Source§

fn inf(_: u32) -> Self

Implementors§