From c54872f011c135bbbc963f4a2b6b1d8ee4fa92bc Mon Sep 17 00:00:00 2001 From: Genny Date: Fri, 6 Nov 2020 23:33:01 -0600 Subject: Add gif components --- src/components/version.rs | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/components/version.rs (limited to 'src/components/version.rs') 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 -- cgit 1.4.1-3-g733a5