blob: a5d688d3768b5ae5bde72a2e7c6ce3bab4fdfb87 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"
}
}
}
|