summaryrefslogtreecommitdiff
path: root/src/data.rs
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2017-05-12 21:33:06 -0400
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2017-05-12 21:33:06 -0400
commit503145f4dfc16001ebbba6c0ace5ce505c151a71 (patch)
treeafdd0961d1722068e5c6c1e3d59eba2d6fe01514 /src/data.rs
parent35f5d3c514b640d3b99c643890bb4a655025994d (diff)
Restructure project.
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()))))
+}