fn rename_fields(&mut self, column: &str) {
        let matched_indexes = self.match_fields_indexes(column);
        for index in matched_indexes {
            let field = self.enumerated_fields.remove(index);//remove it
            let field = field.rename(); //rename it
            self.enumerated_fields.insert(index, field); //insert it back to the same location
        }
    }
/// take the enumerated field that is a column that matched the name
take the enumerated field that is a column that matched the name
take the enumerated field that is a column that matched the name
fn rename_fields(&mut self, column: &str) {
        let matched_indexes = self.match_fields_indexes(column);
        for index in matched_indexes {
            let field = self.enumerated_fields.remove(index);//remove it
            let field = field.rename(); //rename it
            self.enumerated_fields.insert(index, field); //insert it back to the same location
        }
    }
fn rename_fields ( & mut self , column : & str ) { let matched_indexes = self . match_fields_indexes ( column ) ; for index in matched_indexes { let field = self . enumerated_fields . remove ( index ) ; //remove it let field = field . rename ( ) ; //rename it self . enumerated_fields . insert ( index , field ) ; //insert it back to the same location } }
take the enumerated field that is a column that matched the name
take the enumerated field that is a column that matched the name
&mut self
column
&str
&mut self
column
&str