1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
use std::collections::HashMap; use srdf::lang::Lang; #[derive(Debug, Clone)] pub struct MessageMap { mmap: HashMap<Option<Lang>, String> } impl MessageMap { pub fn new() -> Self { MessageMap { mmap: HashMap::new() } } }