summaryrefslogtreecommitdiff
path: root/src/data.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/data.rs')
-rw-r--r--src/data.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/data.rs b/src/data.rs
new file mode 100644
index 0000000..f652a13
--- /dev/null
+++ b/src/data.rs
@@ -0,0 +1,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()))))
+}