Skip to main content

Entry

Struct Entry 

Source
pub struct Entry<'a> { /* private fields */ }
Expand description

A member whose local file entry, extras, and optional data descriptor have been reconciled with the directory and checked for a consistent kind.

Implementations§

Source§

impl Entry<'_>

Source

pub fn directory(&self) -> &CentralDirectoryEntry

Returns the member’s central directory entry.

Source

pub fn record_range(&self) -> Range<u64> ⓘ

Returns the member’s full byte range, including headers and any descriptor.

Source

pub fn kind(&self) -> &EntryKind

Returns the member’s kind, validated during local record resolution.

This does not decode payloads or apply an extraction policy.

Source

pub fn unix_mode(&self) -> u16

Returns the UNIX file type and permission bits from external attributes.

This is zero for hosts other than UNIX and Darwin.

Source

pub fn data_offset(&self) -> u64

Returns the absolute position of the encoded payload.

Source

pub fn has_unix_extra(&self) -> bool

Returns whether a PKWARE UNIX extra field was present in either header.

A field containing only the timestamp and ownership prefix counts as present. Any file-type data is available through Self::kind.

Trait Implementations§

Source§

impl<'a> Clone for Entry<'a>

Source§

fn clone(&self) -> Entry<'a>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<'a> Copy for Entry<'a>

Source§

impl<'a> Debug for Entry<'a>

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Forget for Entry<'a>

§

impl<'a> Freeze for Entry<'a>
where &'a IndexedEntry: Freeze, &'a ResolvedMember: Freeze,

§

impl<'a> Move for Entry<'a>

§

impl<'a> RefUnwindSafe for Entry<'a>

§

impl<'a> Send for Entry<'a>
where &'a IndexedEntry: Send, &'a ResolvedMember: Send,

§

impl<'a> Sync for Entry<'a>
where BoxRaw<str>: Sync, BoxRaw<[u8]>: Sync, RawVecInner: Sync,

§

impl<'a> Unpin for Entry<'a>
where &'a IndexedEntry: Unpin, &'a ResolvedMember: Unpin,

§

impl<'a> UnsafeUnpin for Entry<'a>
where &'a IndexedEntry: UnsafeUnpin, &'a ResolvedMember: UnsafeUnpin,

§

impl<'a> UnwindSafe for Entry<'a>
where &'a IndexedEntry: UnwindSafe, &'a ResolvedMember: UnwindSafe,

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.