From: Kostya Shishkov Date: Fri, 10 Apr 2020 15:53:01 +0000 (+0200) Subject: core/io: mark FullCodebookDesc and ShortCodebookDesc as Copy X-Git-Url: https://git.nihav.org/?a=commitdiff_plain;h=fd47a9b679a723f08a76a7f83e3be18f87cef63c;p=nihav.git core/io: mark FullCodebookDesc and ShortCodebookDesc as Copy --- 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,