pub struct Layout {
pub len: u64,
pub end_record_offset: u64,
pub zip64: bool,
pub offset_shift: u64,
pub central_offset: u64,
pub central_size: u64,
pub declared_entries: u64,
pub truncated_central: bool,
pub comment: Vec<u8>,
pub trailing_garbage: u64,
pub reconstructed: bool,
}Expand description
What the reader found and tolerated about the archive’s structure.
Fields§
§len: u64Total length of the source in bytes.
end_record_offset: u64Absolute offset of the end of central directory record.
zip64: boolWhether Zip64 end records were present and used.
offset_shift: u64Bytes to add to every recorded offset; nonzero when junk precedes the archive.
central_offset: u64Central directory offset as recorded.
central_size: u64Central directory size as recorded.
declared_entries: u64Entry count as recorded.
truncated_central: boolTrue when fewer central headers were readable than declared.
comment: Vec<u8>The archive comment.
trailing_garbage: u64Bytes between the end of the last central header and the end records, or between the end record and the end of the source after the comment; zero for a well-formed archive.
reconstructed: boolTrue when no central directory was found and the entry list was rebuilt by scanning for local file headers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layout
impl RefUnwindSafe for Layout
impl Send for Layout
impl Sync for Layout
impl Unpin for Layout
impl UnsafeUnpin for Layout
impl UnwindSafe for Layout
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