pub fn index(&self, index: usize) -> (usize, usize) {
        let type_ = self.types()[index];
        let field_index = self
            .fields_hash
            .as_ref()
            .map(|x| x[&type_].0)
            .unwrap_or_else(|| type_ as usize);
        let index = self.field_slot(index);
        (field_index, index)
    }
/// Returns the index and slot of the field to select from `self.fields`.
Returns the index and slot of the field to select from `self.fields`.
Returns the index and slot of the field to select from ` self . fields ` .
pub fn index(&self, index: usize) -> (usize, usize) {
        let type_ = self.types()[index];
        let field_index = self
            .fields_hash
            .as_ref()
            .map(|x| x[&type_].0)
            .unwrap_or_else(|| type_ as usize);
        let index = self.field_slot(index);
        (field_index, index)
    }
pub fn index ( & self , index : usize ) -> ( usize , usize ) { let type_ = self . types ( ) [ index ] ; let field_index = self . fields_hash . as_ref ( ) . map ( | x | x [ & type_ ] . 0 ) . unwrap_or_else ( | | type_ as usize ) ; let index = self . field_slot ( index ) ; ( field_index , index ) }
Returns the index and slot of the field to select from `self.fields`.
Returns the index and slot of the field to select from ` self . fields ` .
&self
index
usize
&self
index
usize