pub struct BitOutputState {
pub file_position: u64,
pub current_byte: u8,
pub num_bits_filled: u8,
}Expand description
Exact serializable state of a BitOutputStream.
Fields§
§file_position: u64Byte offset of the underlying writer.
current_byte: u8Bits currently accumulated for the next output byte.
num_bits_filled: u8Number of bits accumulated in current_byte (0..=7).
Trait Implementations§
Source§impl Clone for BitOutputState
impl Clone for BitOutputState
impl Copy for BitOutputState
Source§impl Debug for BitOutputState
impl Debug for BitOutputState
Source§impl<'de> Deserialize<'de> for BitOutputState
impl<'de> Deserialize<'de> for BitOutputState
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 BitOutputState
Source§impl PartialEq for BitOutputState
impl PartialEq for BitOutputState
Source§impl Serialize for BitOutputState
impl Serialize for BitOutputState
impl StructuralPartialEq for BitOutputState
Auto Trait Implementations§
impl Freeze for BitOutputState
impl RefUnwindSafe for BitOutputState
impl Send for BitOutputState
impl Sync for BitOutputState
impl Unpin for BitOutputState
impl UnsafeUnpin for BitOutputState
impl UnwindSafe for BitOutputState
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