Function allowed_casting

Source
pub fn allowed_casting(from: &DType, to: &DType) -> Option<CastOutcome>