pub trait IntToFloat { // Required methods fn to_f32(&self) -> f32; fn to_f64(&self) -> f64; }
Trait to convert integer types to floating-point types.