Derive Clone trait for Value and Field.
This commit is contained in:
parent
90bf02c02b
commit
fa34bc9895
|
@ -99,7 +99,7 @@ impl IfdEntry {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// A TIFF field.
|
/// A TIFF field.
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub struct Field {
|
pub struct Field {
|
||||||
/// The tag of this field.
|
/// The tag of this field.
|
||||||
pub tag: Tag,
|
pub tag: Tag,
|
||||||
|
|
|
@ -29,7 +29,7 @@ use std::fmt;
|
||||||
use crate::endian::Endian;
|
use crate::endian::Endian;
|
||||||
|
|
||||||
/// Types and values of TIFF fields (for Exif attributes).
|
/// Types and values of TIFF fields (for Exif attributes).
|
||||||
#[derive(Debug)]
|
#[derive(Debug, Clone)]
|
||||||
pub enum Value {
|
pub enum Value {
|
||||||
/// Vector of 8-bit unsigned integers.
|
/// Vector of 8-bit unsigned integers.
|
||||||
Byte(Vec<u8>),
|
Byte(Vec<u8>),
|
||||||
|
|
Loading…
Reference in New Issue