Trait Float

Source
pub trait Float: Num {
    // Required methods
    fn floor(a: Self) -> Self;
    fn ceil(a: Self) -> Self;
    fn round(a: Self) -> Self;
    fn exp(a: Self) -> Self;
}

Required Methods§

Source

fn floor(a: Self) -> Self

Source

fn ceil(a: Self) -> Self

Source

fn round(a: Self) -> Self

Source

fn exp(a: Self) -> 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 Float for f32

Source§

fn floor(a: Self) -> Self

Source§

fn ceil(a: Self) -> Self

Source§

fn round(a: Self) -> Self

Source§

fn exp(a: Self) -> Self

Source§

impl Float for f64

Source§

fn floor(a: Self) -> Self

Source§

fn ceil(a: Self) -> Self

Source§

fn round(a: Self) -> Self

Source§

fn exp(a: Self) -> Self

Implementors§