fn build_column_index<F>(columns: &[Column<F>]) -> HashMap<&str, usize> {
    debug_assert_eq!(
        columns.iter().map(|column| column.name.as_str()).collect::<HashSet<_>>().len(),
        columns.len(),
    );

    columns.iter()
        .enumerate()
        .map(|(index, column)| (column.name.as_str(), index))
        .collect()
}
/// Assign to each column a fixed column index.
///
/// This index will be used to organize the bounds information.
///
/// # Arguments
///
/// * `columns`: Collection of the columns
///
/// # Return value
///
/// A map assigning to each column name a value.
///
/// # Note
///
/// This assignment is not a specific order.
Assign to each column a fixed column index.
This index will be used to organize the bounds information.
Assign to each column a fixed column index . This index will be used to organize the bounds information .
fn build_column_index<F>(columns: &[Column<F>]) -> HashMap<&str, usize> {
    debug_assert_eq!(
        columns.iter().map(|column| column.name.as_str()).collect::<HashSet<_>>().len(),
        columns.len(),
    );
    columns.iter()
        .enumerate()
        .map(|(index, column)| (column.name.as_str(), index))
        .collect()
}
fn build_column_index < F > ( columns : & [ Column < F > ] ) -> HashMap < & str , usize > { debug_assert_eq ! ( columns iter ( ) map ( column column name as_str ( ) ) collect HashSet ( ) len ( ) columns len ( ) ) ; columns . iter ( ) . enumerate ( ) . map ( | ( index , column ) | ( column . name . as_str ( ) , index ) ) . collect ( ) }
Assign to each column a fixed column index.
Assign to each column a fixed column index .
columns
&[Column<F>]
columns
&[Column<F>]
return value
A map assigning to each column name a value.
A map assigning to each column name a value .
note
This assignment is not a specific order.
This assignment is not a specific order .