pub trait MimeDb { fn init() -> Self; fn get_type(&self, data: &[u8]) -> Option<Mime>; }
Initialise the database.
Given a slice of bytes, returns the inferred mimetype, if any.