]> git.nihav.org Git - nihav.git/commitdiff
make {Full,Short}CodebookDesc fields public
authorKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 12 Feb 2019 14:26:26 +0000 (15:26 +0100)
committerKostya Shishkov <kostya.shishkov@gmail.com>
Tue, 12 Feb 2019 14:26:26 +0000 (15:26 +0100)
nihav-core/src/io/codebook.rs

index 285beddea95d9d8e0060433dc107490debdead11..b86d0c1e067acb6ffadfd5d3e402bc96f742258c 100644 (file)
@@ -18,14 +18,14 @@ pub enum CodebookMode {
 type CodebookResult<T> = Result<T, CodebookError>;
 
 pub struct FullCodebookDesc<S> {
-    code: u32,
-    bits: u8,
-    sym:  S,
+    pub code: u32,
+    pub bits: u8,
+    pub sym:  S,
 }
 
 pub struct ShortCodebookDesc {
-    code: u32,
-    bits: u8,
+    pub code: u32,
+    pub bits: u8,
 }
 
 pub trait CodebookDescReader<S> {