diff options
-rw-r--r-- | src/binary/reverse_appendix.rs | 1 | ||||
-rw-r--r-- | src/gltf/extras.rs | 2 | ||||
-rw-r--r-- | src/jpeg/segment.rs | 2 | ||||
-rw-r--r-- | src/lossless/lsb.rs | 2 | ||||
-rw-r--r-- | src/wav/lsb.rs | 1 |
5 files changed, 5 insertions, 3 deletions
diff --git a/src/binary/reverse_appendix.rs b/src/binary/reverse_appendix.rs index d131526..592e623 100644 --- a/src/binary/reverse_appendix.rs +++ b/src/binary/reverse_appendix.rs @@ -3,6 +3,7 @@ use crate::{Codec, Error}; /// Reverses payload binary data and writes it ass-first past the end of the original data. A /// length marker is also prepended to the payload *before reversing* so the decoder knows how long /// the payload is. +#[derive(Clone, Debug)] pub struct BinaryReverseAppendixCodec; impl Codec for BinaryReverseAppendixCodec { diff --git a/src/gltf/extras.rs b/src/gltf/extras.rs index eade453..df3cea5 100644 --- a/src/gltf/extras.rs +++ b/src/gltf/extras.rs @@ -8,7 +8,7 @@ use crate::{Codec, Error}; /// Codec for embedding data in a GLTF file "extras" entry. It uses the extras entry in the first /// scene in the file and stores the data as base64. -#[derive(Default)] +#[derive(Clone, Debug, Default)] pub struct ExtrasEntryCodec; impl Codec for ExtrasEntryCodec { diff --git a/src/jpeg/segment.rs b/src/jpeg/segment.rs index c0512a1..5e28dd5 100644 --- a/src/jpeg/segment.rs +++ b/src/jpeg/segment.rs @@ -6,7 +6,7 @@ use crate::{codec::Codec, Error}; /// Codec for storing payload data in JPEG comment (COM) segments. Can store an arbitrary amount of /// data, as long as the number of comment segments does not exceed u64::MAX. -#[derive(Debug, PartialEq, Eq)] +#[derive(Clone, Debug, PartialEq, Eq)] pub struct JpegSegmentCodec { /// Index of segment to insert comments at. pub start_index: usize, diff --git a/src/lossless/lsb.rs b/src/lossless/lsb.rs index 1c9a213..5883fde 100644 --- a/src/lossless/lsb.rs +++ b/src/lossless/lsb.rs @@ -8,7 +8,7 @@ use crate::{codec::Codec, Error}; /// in an image. This implementation reduces the colors in the carrier (irreversibly) in order to /// allow a byte of data to fit in each pixel of the image. 3 bits of data are encoded per pixel, /// and the 9th bit is used to signal the end of data. -#[derive(Debug, Default)] +#[derive(Clone, Debug, Default)] pub struct LsbCodec; impl Codec for LsbCodec { diff --git a/src/wav/lsb.rs b/src/wav/lsb.rs index 17e6e28..21f298c 100644 --- a/src/wav/lsb.rs +++ b/src/wav/lsb.rs @@ -8,6 +8,7 @@ use num_traits::{FromBytes, ToBytes}; /// A Least-Significant Bit (LSB) Codec for WAV files. Stores 1 bit of payload data in each sample /// of a WAV file. Supported sample formats are 8, 16, and 32-bit PCM, and 32-bit float. +#[derive(Clone, Debug)] pub struct LsbCodec; impl Codec for LsbCodec { |