Struct rc_zip::parse::LocalFileHeader
source · pub struct LocalFileHeader<'a> {
pub reader_version: Version,
pub flags: u16,
pub method: Method,
pub modified: MsdosTimestamp,
pub crc32: u32,
pub compressed_size: u32,
pub uncompressed_size: u32,
pub name: Cow<'a, [u8]>,
pub extra: Cow<'a, [u8]>,
pub method_specific: MethodSpecific,
}
Expand description
4.3.7 Local file header
Fields§
§reader_version: Version
version needed to extract
flags: u16
general purpose bit flag
method: Method
compression method
modified: MsdosTimestamp
last mod file datetime
crc32: u32
crc-32
compressed_size: u32
compressed size
uncompressed_size: u32
uncompressed size
name: Cow<'a, [u8]>
file name
extra: Cow<'a, [u8]>
extra field
method_specific: MethodSpecific
method-specific fields
Implementations§
source§impl LocalFileHeader<'_>
impl LocalFileHeader<'_>
sourcepub fn to_owned(&self) -> LocalFileHeader<'static>
pub fn to_owned(&self) -> LocalFileHeader<'static>
Copy the structure and clone the original values.
This is always a deep copy.
source§impl LocalFileHeader<'_>
impl LocalFileHeader<'_>
sourcepub fn into_owned(self) -> LocalFileHeader<'static>
pub fn into_owned(self) -> LocalFileHeader<'static>
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
source§impl<'a> LocalFileHeader<'a>
impl<'a> LocalFileHeader<'a>
sourcepub fn has_data_descriptor(&self) -> bool
pub fn has_data_descriptor(&self) -> bool
Check for the presence of the bit flag that indicates a data descriptor is present after the file data.
Trait Implementations§
source§impl<'a> Debug for LocalFileHeader<'a>
impl<'a> Debug for LocalFileHeader<'a>
source§impl IntoOwned for LocalFileHeader<'_>
impl IntoOwned for LocalFileHeader<'_>
source§type Owned = LocalFileHeader<'static>
type Owned = LocalFileHeader<'static>
The type after obtaining ownership, should be the same as before but with static lifetime.
source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
Auto Trait Implementations§
impl<'a> Freeze for LocalFileHeader<'a>
impl<'a> RefUnwindSafe for LocalFileHeader<'a>
impl<'a> Send for LocalFileHeader<'a>
impl<'a> Sync for LocalFileHeader<'a>
impl<'a> Unpin for LocalFileHeader<'a>
impl<'a> UnwindSafe for LocalFileHeader<'a>
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