summaryrefslogtreecommitdiff
path: root/src/module.rs
blob: 0a1d30a48b0a65f27e70460e999416b52ecb8fc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub enum Module {
    Dashboard,
    Navigation,
    Engines,
}

pub fn from_primitive(num : isize) -> Module {
    match num {
        0 => Module::Dashboard,
        1 => Module::Navigation,
        2 => Module::Engines,
        _ => Module::Dashboard,
    }
}