You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lookup_table.rs
    path of file: ./repos/gotham/gotham/src/router/route/matcher
    
    the code of the file until where you have to start completion: use mime::Mime;
use std::collections::HashMap;

/// This type is used to quickly lookup a non-hashed container of mime types by their essence string.
pub(crate) type LookupTable = HashMap<String, Vec<usize>>;

pub(crate) trait LookupTableFromTypes {
    /// Create the lookup table from an iterator of mime types. If
    
    fn from_types<'a, I: Iterator<Item = &'a Mime>>(types: I, include_stars: bool) -> Self {
        let mut tbl = Self::new();
        for (i, mime) in types.enumerate() {
            if include_stars {
                insert(&mut tbl, "*/*", i);
                insert(&mut tbl, format!("{}/*", mime.type_()), i);
            }
            insert(&mut tbl, mime.essence_str(), i);
        }
        tbl
    }