pub fn scalar_matches_dtype(scalar: &Scalar, dtype: &DType) -> bool
Returns true if the scalar’s is compatible with the provided data type.