Function cast

Source
pub fn cast<T: NumCast, U: NumCast>(n: T) -> U
Expand description

Cast from a typed scalar to another based on num_traits