orbtk-core 0.3.1-alpha4

Core crate that provides base api and elements for OrbTk like widgets basis.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::collections::HashMap;

use ron::de::from_str;
use serde_derive::Deserialize;

/// Internal struct used by the `RonLocalization` to parse as language file.
#[derive(Debug, Clone, Deserialize)]
pub struct Dictionary {
    pub words: HashMap<String, String>,
}

impl From<&str> for Dictionary {
    fn from(s: &str) -> Self {
        from_str(s).unwrap()
    }
}