pub fn add_field<'a>(&mut self, field: &'a AttributeField) {
        self.fields.push(field.clone());
        self.header.num_fields += 1;
        self.get_field_hashmap();
        // println!("{}", field.name);
        for record_index in 0..self.data.len() {
            self.data[record_index].push(FieldData::Null);
            // println!("{:?}", self.data[record_index]);
        }
        // println!(
        //     "{} {} {}",
        //     self.header.num_records,
        //     self.header.num_fields,
        //     self.data.len(),
        // );
    }
/// Adds a field to the table
Adds a field to the table
Adds a field to the table
pub fn add_field<'a>(&mut self, field: &'a AttributeField) {
        self.fields.push(field.clone());
        self.header.num_fields += 1;
        self.get_field_hashmap();
        // println!("{}", field.name);
        for record_index in 0..self.data.len() {
            self.data[record_index].push(FieldData::Null);
            // println!("{:?}", self.data[record_index]);
        }
        // println!(
        //     "{} {} {}",
        //     self.header.num_records,
        //     self.header.num_fields,
        //     self.data.len(),
        // );
    }
pub fn add_field < ' a > ( & mut self , field : & ' a AttributeField ) { self . fields . push ( field . clone ( ) ) ; self . header . num_fields += 1 ; self . get_field_hashmap ( ) ; // println!("{}", field.name); for record_index in 0 .. self . data . len ( ) { self . data [ record_index ] . push ( FieldData :: Null ) ; // println!("{:?}", self.data[record_index]); } // println!( //     "{} {} {}", //     self.header.num_records, //     self.header.num_fields, //     self.data.len(), // ); }
Adds a field to the table
Adds a field to the table
&mut self
field
&'a AttributeField
&mut self
field
&'a AttributeField