Struct stream_unpack::zip::structures::file_header::FileHeaderExtraField
source · 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 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 moreAuto Trait Implementations§
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