fn index_key(cur_key: &str, key_order: &[String]) -> usize {
        for (idx, key) in key_order.iter().enumerate() {
            if *key == *cur_key {
                return idx;
            }
        }
        key_order.len()
    }
// Returns the index of the key, length of the vector if the key is not included
// This can be done with out sorting
Returns the index of the key, length of the vector if the key is not included
This can be done with out sorting
Returns the index of the key length of the vector if the key is not included This can be done with out sorting
fn index_key(cur_key: &str, key_order: &[String]) -> usize {
        for (idx, key) in key_order.iter().enumerate() {
            if *key == *cur_key {
                return idx;
            }
        }
        key_order.len()
    }
fn index_key ( cur_key : & str , key_order : & [ String ] ) -> usize { for ( idx , key ) in key_order . iter ( ) . enumerate ( ) { if * key == * cur_key { return idx ; } } key_order . len ( ) }
Returns the index of the key, length of the vector if the key is not included
This can be done with out sorting
Returns the index of the key length of the vector if the key is not included This can be done with out sorting
cur_key
&str
key_order
&[String]