#[non_exhaustive]pub struct BlockInfo {
pub uncompressed: u32,
pub compressed: u32,
pub bytes_read: u32,
pub flags: u32,
}Expand description
One block (or the blocks-info section).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.uncompressed: u32Declared decoded size.
compressed: u32Declared stored size.
bytes_read: u32The bytes actually available and read: below compressed when the
file is truncated. The dump writes this as compressed.
flags: u32Flags: u16 for a block, the data flags for blocks-info.
Trait Implementations§
impl Copy for BlockInfo
impl Eq for BlockInfo
impl StructuralPartialEq for BlockInfo
Auto Trait Implementations§
impl Forget for BlockInfo
impl Freeze for BlockInfo
impl Move for BlockInfo
impl RefUnwindSafe for BlockInfo
impl Send for BlockInfo
impl Sync for BlockInfo
impl Unpin for BlockInfo
impl UnsafeUnpin for BlockInfo
impl UnwindSafe for BlockInfo
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