From fd47a9b679a723f08a76a7f83e3be18f87cef63c Mon Sep 17 00:00:00 2001 From: Kostya Shishkov Date: Fri, 10 Apr 2020 17:53:01 +0200 Subject: [PATCH] core/io: mark FullCodebookDesc and ShortCodebookDesc as Copy --- nihav-core/src/io/codebook.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nihav-core/src/io/codebook.rs b/nihav-core/src/io/codebook.rs index 5b82593..9882610 100644 --- a/nihav-core/src/io/codebook.rs +++ b/nihav-core/src/io/codebook.rs @@ -83,6 +83,7 @@ pub type CodebookResult = Result; /// This should be used to create a list of codeword definitions for [`FullCodebookDescReader`]. /// /// [`FullCodebookDescReader`]: ./struct.FullCodebookDescReader.html +#[derive(Clone,Copy)] pub struct FullCodebookDesc { /// Codeword bits. pub code: u32, @@ -97,6 +98,7 @@ pub struct FullCodebookDesc { /// This should be used to create a list of codeword definitions for [`ShortCodebookDescReader`]. /// /// [`ShortCodebookDescReader`]: ./struct.ShortCodebookDescReader.html +#[derive(Clone,Copy)] pub struct ShortCodebookDesc { /// Codeword bits. pub code: u32, -- 2.39.5