cast

Function cast 

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

Cast from a typed scalar to another based on num_traits