]> git.nihav.org Git - nihav.git/commitdiff
core/io: mark FullCodebookDesc and ShortCodebookDesc as Copy
authorKostya Shishkov <kostya.shishkov@gmail.com>
Fri, 10 Apr 2020 15:53:01 +0000 (17:53 +0200)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 11 Apr 2020 08:21:36 +0000 (10:21 +0200)
nihav-core/src/io/codebook.rs

index 5b8259368986c74e5bef2069d190a4bb6c46c9cd..9882610ab0d102d2be487b56ca5abc4494fd4a4a 100644 (file)
@@ -83,6 +83,7 @@ pub type CodebookResult<T> = Result<T, CodebookError>;
 /// This should be used to create a list of codeword definitions for [`FullCodebookDescReader`].
 ///
 /// [`FullCodebookDescReader`]: ./struct.FullCodebookDescReader.html
+#[derive(Clone,Copy)]
 pub struct FullCodebookDesc<S> {
     /// Codeword bits.
     pub code: u32,
@@ -97,6 +98,7 @@ pub struct FullCodebookDesc<S> {
 /// 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,