X-Git-Url: https://git.nihav.org/?a=blobdiff_plain;f=nihav-core%2Fsrc%2Fio%2Fcodebook.rs;h=9882610ab0d102d2be487b56ca5abc4494fd4a4a;hb=fd47a9b679a723f08a76a7f83e3be18f87cef63c;hp=5b8259368986c74e5bef2069d190a4bb6c46c9cd;hpb=10a6216fe0c337e18eb7e5fce0d65b3c7f80d7af;p=nihav.git 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,