Struct synthzip::CentralDirectoryFileHeader
source · pub struct CentralDirectoryFileHeader {Show 20 fields
pub signature: [u8; 4],
pub version_made_by: u16,
pub version_needed_to_extract: u16,
pub general_purpose_flags: u16,
pub compression_method: u16,
pub file_last_modification_time: u16,
pub file_last_modification_date: u16,
pub crc32_of_uncompressed_data: u32,
pub compressed_size: u32,
pub uncompressed_size: u32,
pub file_name_length: u16,
pub extra_field_length: u16,
pub file_comment_length: u16,
pub disk_number_where_file_starts: u16,
pub internal_file_attributes: u16,
pub external_file_attributes: u32,
pub relative_offset_of_local_file_header: u32,
pub file_name: String,
pub extra_field: Vec<u8>,
pub file_comment: Vec<u8>,
}
Fields§
§signature: [u8; 4]
§version_made_by: u16
§version_needed_to_extract: u16
§general_purpose_flags: u16
§compression_method: u16
§file_last_modification_time: u16
§file_last_modification_date: u16
§crc32_of_uncompressed_data: u32
§compressed_size: u32
§uncompressed_size: u32
§file_name_length: u16
§extra_field_length: u16
§file_comment_length: u16
§disk_number_where_file_starts: u16
§internal_file_attributes: u16
§external_file_attributes: u32
§relative_offset_of_local_file_header: u32
§file_name: String
§extra_field: Vec<u8>
§file_comment: Vec<u8>
Implementations§
Trait Implementations§
source§impl Clone for CentralDirectoryFileHeader
impl Clone for CentralDirectoryFileHeader
source§fn clone(&self) -> CentralDirectoryFileHeader
fn clone(&self) -> CentralDirectoryFileHeader
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CentralDirectoryFileHeader
impl Debug for CentralDirectoryFileHeader
source§impl From<LocalFileHeader> for CentralDirectoryFileHeader
impl From<LocalFileHeader> for CentralDirectoryFileHeader
source§fn from(local_file_header: LocalFileHeader) -> Self
fn from(local_file_header: LocalFileHeader) -> Self
Converts to this type from the input type.
source§impl Hash for CentralDirectoryFileHeader
impl Hash for CentralDirectoryFileHeader
source§impl Ord for CentralDirectoryFileHeader
impl Ord for CentralDirectoryFileHeader
source§fn cmp(&self, other: &CentralDirectoryFileHeader) -> Ordering
fn cmp(&self, other: &CentralDirectoryFileHeader) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for CentralDirectoryFileHeader
impl PartialEq for CentralDirectoryFileHeader
source§fn eq(&self, other: &CentralDirectoryFileHeader) -> bool
fn eq(&self, other: &CentralDirectoryFileHeader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CentralDirectoryFileHeader
impl PartialOrd for CentralDirectoryFileHeader
source§fn partial_cmp(&self, other: &CentralDirectoryFileHeader) -> Option<Ordering>
fn partial_cmp(&self, other: &CentralDirectoryFileHeader) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for CentralDirectoryFileHeader
impl StructuralEq for CentralDirectoryFileHeader
impl StructuralPartialEq for CentralDirectoryFileHeader
Auto Trait Implementations§
impl RefUnwindSafe for CentralDirectoryFileHeader
impl Send for CentralDirectoryFileHeader
impl Sync for CentralDirectoryFileHeader
impl Unpin for CentralDirectoryFileHeader
impl UnwindSafe for CentralDirectoryFileHeader
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