summaryrefslogtreecommitdiff
path: root/src/data.rs
blob: f652a13dcb821986511b5dcb61bc59317aba13c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
pub static MESSAGE: &'static str = "Hello";

#[derive(Debug)]
pub enum SimpleFsData {
    File(u64, String),
    Directory(u64, Vec<(String, SimpleFsData)>)
}

// pub static HELLO: &'static SimpleFsData =
//     SimpleFsData:File("hello.txt", "Hello World");

pub fn get_data1() -> SimpleFsData {
    SimpleFsData::Directory(
        1, vec!(("hello".to_string(),
                 SimpleFsData::File(2, "Hello, World!".to_string()))))
}