pub fn encode_lex(lex: &HashMap<u64, String>) -> Result<Vec<u8>, LexError>
Encode Q42LEX bytes from a hash → string map.