Skip to main content

check_is_valid_struct_cast

Function check_is_valid_struct_cast 

Source
pub fn check_is_valid_struct_cast(
    input_dtype: &DataType,
    output_dtype: &DataType,
    output_name: &PlSmallStr,
) -> PolarsResult<()>
Expand description

Check that two dtypes have the same struct fields: same names, same order, nested in lists and arrays. Field dtypes are not compared.