pub fn index_of(&self, name: &str) -> Result<usize> {
        for i in 0..self.fields.len() {
            if self.fields[i].name == name {
                return Ok(i);
            }
        }
        Err(ArrowError::InvalidArgumentError(name.to_owned()))
    }
/// Find the index of the column with the given name
Find the index of the column with the given name
Find the index of the column with the given name
pub fn index_of(&self, name: &str) -> Result<usize> {
        for i in 0..self.fields.len() {
            if self.fields[i].name == name {
                return Ok(i);
            }
        }
        Err(ArrowError::InvalidArgumentError(name.to_owned()))
    }
pub fn index_of ( & self , name : & str ) -> Result < usize > { for i in 0 .. self . fields . len ( ) { if self . fields [ i ] . name == name { return Ok ( i ) ; } } Err ( ArrowError :: InvalidArgumentError ( name . to_owned ( ) ) ) }
Find the index of the column with the given name
Find the index of the column with the given name
&self
name
&str
&self
name
&str