Struct unarj_rs::local_file_header::LocalFileHeader

source ·
pub struct LocalFileHeader {
Show 20 fields pub archiver_version_number: u8, pub min_version_to_extract: u8, pub host_os: HostOS, pub arj_flags: u8, pub compression_method: CompressionMethod, pub file_type: FileType, pub date_time_modified: u32, pub compressed_size: u32, pub original_size: u32, pub original_crc32: u32, pub file_spec_position: u16, pub file_access_mode: u16, pub first_chapter: u8, pub last_chapter: u8, pub extended_file_position: u32, pub date_time_accessed: u32, pub date_time_created: u32, pub original_size_even_for_volumes: u32, pub name: String, pub comment: String,
}

Fields§

§archiver_version_number: u8§min_version_to_extract: u8§host_os: HostOS§arj_flags: u8§compression_method: CompressionMethod§file_type: FileType§date_time_modified: u32§compressed_size: u32§original_size: u32§original_crc32: u32§file_spec_position: u16§file_access_mode: u16§first_chapter: u8§last_chapter: u8§extended_file_position: u32§date_time_accessed: u32§date_time_created: u32§original_size_even_for_volumes: u32§name: String§comment: String

Implementations§

source§

impl LocalFileHeader

source

pub fn load_from(header_bytes: &[u8]) -> Option<Self>

source

pub fn is_garbled(&self) -> bool

source

pub fn is_volume(&self) -> bool

source

pub fn is_ext_file(&self) -> bool

source

pub fn is_path_sym(&self) -> bool

source

pub fn is_backup(&self) -> bool

Trait Implementations§

source§

impl Debug for LocalFileHeader

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.