More derives on TIFF value structs

This commit is contained in:
Sergey "Shnatsel" Davidoff committed 2026-03-06 10:36:12 +00:00
1 parent 0ad653433a
commit 2119bff354
1 file changed
+4 -4
+4 -4
View File
@@ -665,22 +665,22 @@ impl_tiff_value_for_contiguous_sequence!(Rational; 8; Type::RATIONAL);
impl_tiff_value_for_contiguous_sequence!(SRational; 8; Type::SRATIONAL); impl_tiff_value_for_contiguous_sequence!(SRational; 8; Type::SRATIONAL);
/// Type to represent tiff values of type `IFD` /// Type to represent tiff values of type `IFD`
#[derive(Clone)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct Ifd(pub u32); pub struct Ifd(pub u32);
/// Type to represent tiff values of type `IFD8` /// Type to represent tiff values of type `IFD8`
#[derive(Clone)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct Ifd8(pub u64); pub struct Ifd8(pub u64);
/// Type to represent tiff values of type `RATIONAL` /// Type to represent tiff values of type `RATIONAL`
#[derive(Clone)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct Rational { pub struct Rational {
pub n: u32, pub n: u32,
pub d: u32, pub d: u32,
} }
/// Type to represent tiff values of type `SRATIONAL` /// Type to represent tiff values of type `SRATIONAL`
#[derive(Clone)] #[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct SRational { pub struct SRational {
pub n: i32, pub n: i32,
pub d: i32, pub d: i32,