Function jsonl_converter::brackets::brackets_map
source · pub fn brackets_map() -> HashMap<char, char>
Expand description
Returns a map of brackets with their corresponding opening and closing brackets.
Returns
- A map of brackets with their corresponding opening and closing brackets.
Examples
use jsonl_converter::brackets::brackets_map;
let map = brackets_map();
assert_eq!(map.get(&']'), Some(&'['));
assert_eq!(map.get(&'}'), Some(&'{'));