pub struct BitInputState {
pub file_position: u64,
pub current_byte: Option<u8>,
pub num_bits_remaining: u8,
}Expand description
Exact serializable state of a BitInputStream.
Fields§
§file_position: u64Byte offset of the underlying reader.
current_byte: Option<u8>Currently buffered byte, or None once EOF has been reached.
num_bits_remaining: u8Number of unread bits remaining in current_byte (0..=8).
Trait Implementations§
Source§impl Clone for BitInputState
impl Clone for BitInputState
impl Copy for BitInputState
Source§impl Debug for BitInputState
impl Debug for BitInputState
Source§impl<'de> Deserialize<'de> for BitInputState
impl<'de> Deserialize<'de> for BitInputState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BitInputState
Source§impl PartialEq for BitInputState
impl PartialEq for BitInputState
Source§impl Serialize for BitInputState
impl Serialize for BitInputState
impl StructuralPartialEq for BitInputState
Auto Trait Implementations§
impl Freeze for BitInputState
impl RefUnwindSafe for BitInputState
impl Send for BitInputState
impl Sync for BitInputState
impl Unpin for BitInputState
impl UnsafeUnpin for BitInputState
impl UnwindSafe for BitInputState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more