logo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/// Utility mixins for Maps. Designed to be imported with 'using'.
pub struct Maps {}

impl Maps {
    // /// Fetch a string from a hash, converting it from another type if necessary.
    // //  static
    // pub fn getString(&self, hash: HashMap<String, Dynamic>, key: String) -> String {
    //     hash.get(key)
    // }

    // /// Fetch a float from a hash, converting it from another type if necessary.
    // //  static
    // pub fn getFloat(&self, hash: HashMap<String, Dynamic>, key: String) -> f32 {
    //     hash.get(key)
    // }

    // /// Fetch a integer from a hash, converting it from another type if necessary.
    // //  static
    // pub fn getInt(&self, hash: HashMap<String, Dynamic>, key: String) -> i32 {
    //     hash.get(key)
    // }

    // /// Fetch a boolean from a hash, converting it from another type if necessary.
    // //  static
    // pub fn getbool(&self, hash: HashMap<String, Dynamic>, key: String) -> bool {
    //     hash.get(key)
    // }
}