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§