about summary refs log tree commit diff
path: root/src/components/version.rs
diff options
context:
space:
mode:
authorGenny <gen@nyble.dev>2020-11-06 23:33:01 -0600
committerGenny <gen@nyble.dev>2020-11-06 23:33:01 -0600
commitc54872f011c135bbbc963f4a2b6b1d8ee4fa92bc (patch)
tree6ee047a5929fbd92a664c041b0596b53f58d59aa /src/components/version.rs
parent85b5d7de253f5f91dbca4047196e005856fd52de (diff)
downloadgifed-c54872f011c135bbbc963f4a2b6b1d8ee4fa92bc.tar.gz
gifed-c54872f011c135bbbc963f4a2b6b1d8ee4fa92bc.zip
Add gif components
Diffstat (limited to 'src/components/version.rs')
-rw-r--r--src/components/version.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/components/version.rs b/src/components/version.rs
new file mode 100644
index 0000000..a5d688d
--- /dev/null
+++ b/src/components/version.rs
@@ -0,0 +1,13 @@
+pub enum Version {
+	Gif87a,
+	Gif89a
+}
+
+impl From<&Version> for &[u8] {
+	fn from(version: &Version) -> Self {
+		match version {
+			Version::Gif87a => b"GIF87a",
+			Version::Gif89a => b"GIF89a"
+		}
+	}
+}
\ No newline at end of file