pub struct FileHeaderExtraField {
pub id: u16,
pub data: Vec<u8>,
}Expand description
Contains raw ZIP file header extra field data
Fields§
§id: u16§data: Vec<u8>Implementations§
Source§impl FileHeaderExtraField
impl FileHeaderExtraField
Sourcepub fn from_bytes(data: impl AsRef<[u8]>) -> Option<Self>
pub fn from_bytes(data: impl AsRef<[u8]>) -> Option<Self>
Attempts to read a ZIP file header extra field. Returns None if there is not enough data
Sourcepub fn read_extra_fields(
data: impl AsRef<[u8]>,
) -> Option<Vec<FileHeaderExtraField>>
pub fn read_extra_fields( data: impl AsRef<[u8]>, ) -> Option<Vec<FileHeaderExtraField>>
Attempts to read all ZIP file headers from the provided data. Returns None if there is an error
Trait Implementations§
Source§impl Clone for FileHeaderExtraField
impl Clone for FileHeaderExtraField
Source§fn clone(&self) -> FileHeaderExtraField
fn clone(&self) -> FileHeaderExtraField
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for FileHeaderExtraField
impl RefUnwindSafe for FileHeaderExtraField
impl Send for FileHeaderExtraField
impl Sync for FileHeaderExtraField
impl Unpin for FileHeaderExtraField
impl UnwindSafe for FileHeaderExtraField
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