pub trait ToFloat { // Required method fn to_float(&self) -> f64; }
Trait for casting: Defines how to convert when cast to a float.