pub enum Block {
Raw(Box<[u8; 4096]>),
Fill([u8; 4]),
Skip,
Crc32(u32),
}
Expand description
A sparse block and its associated data.
Variants§
Raw(Box<[u8; 4096]>)
A raw block holding a byte buffer of length Block::SIZE
.
Fill([u8; 4])
A fill block holding a 4-byte fill value.
Skip
A block that signifies a part of the image that can be skipped.
Crc32(u32)
A CRC32 block holding a checksum value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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