Function map_to_javascript_html::hash_map_to_javascript_html_beautify [−][src]
pub fn hash_map_to_javascript_html_beautify<K: Display + Eq + Hash, V: Display>(
hash_map: &HashMap<K, V>,
variable_name: &str,
keys: &[K],
spaces_a_tab: u8,
tab_count: u8
) -> Result<String, String>
Convert a HashMap to beautified JavaScript code in HTML.