math_ops::conversion

Trait FloatCast

source
pub trait FloatCast {
    // Required methods
    fn to_f32_cast(&self) -> f32;
    fn to_f64_cast(&self) -> f64;
}
Expand description

Trait to convert between f32 and f64.

Required Methods§

source

fn to_f32_cast(&self) -> f32

source

fn to_f64_cast(&self) -> f64

Implementations on Foreign Types§

source§

impl FloatCast for f32

source§

impl FloatCast for f64

Implementors§