2019-07-28 02:26:01 -05:00
|
|
|
#[derive(PartialEq, Eq)]
|
|
|
|
pub struct Tag(pub Context, pub u16);
|
|
|
|
|
|
|
|
#[derive(PartialEq, Eq)]
|
|
|
|
pub enum Context {
|
|
|
|
Tiff,
|
|
|
|
Exif,
|
|
|
|
}
|
|
|
|
|
|
|
|
impl Tag {
|
|
|
|
const ExifIFDPointer: Tag = Tag(Context::Tiff, 34665);
|
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
match Tag::ExifIFDPointer {
|
2022-09-02 22:01:35 -05:00
|
|
|
//~^ ERROR: non-exhaustive patterns: `Tag(Context::Exif, _)` not covered
|
2019-07-28 02:26:01 -05:00
|
|
|
Tag::ExifIFDPointer => {}
|
|
|
|
}
|
|
|
|
}
|