Derive Clone trait for Value and Field.

This commit is contained in:
KAMADA Ken'ichi 2019-12-15 21:11:20 +09:00
parent 90bf02c02b
commit fa34bc9895
2 changed files with 2 additions and 2 deletions

View File

@ -99,7 +99,7 @@ impl IfdEntry {
}
/// A TIFF field.
#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct Field {
/// The tag of this field.
pub tag: Tag,

View File

@ -29,7 +29,7 @@ use std::fmt;
use crate::endian::Endian;
/// Types and values of TIFF fields (for Exif attributes).
#[derive(Debug)]
#[derive(Debug, Clone)]
pub enum Value {
/// Vector of 8-bit unsigned integers.
Byte(Vec<u8>),