Enum ArchiveOffset

pub enum ArchiveOffset

The offset of the start of the archive from the beginning of the reader.

Variants

Detect

Try to detect the archive offset automatically.

This will look at the central directory specified by FromCentralDirectory for a header. If missing, this will behave as if None were specified.

FromCentralDirectory

Use the central directory length and offset to determine the start of the archive.

Known(u64)

Specify a fixed archive offset.

Trait Implementations

impl Clone for ArchiveOffset

fn clone(&self) -> ArchiveOffset

impl Copy for ArchiveOffset

impl Debug for ArchiveOffset

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

impl Default for ArchiveOffset

fn default() -> ArchiveOffset

impl Eq for ArchiveOffset

impl Hash for ArchiveOffset

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for ArchiveOffset

fn eq(&self, other: &ArchiveOffset) -> bool

impl StructuralPartialEq for ArchiveOffset

Auto Trait Implementations

impl Freeze for ArchiveOffset

impl RefUnwindSafe for ArchiveOffset

impl Send for ArchiveOffset

impl Sync for ArchiveOffset

impl Unpin for ArchiveOffset

impl UnsafeUnpin for ArchiveOffset

impl UnwindSafe for ArchiveOffset

Blanket Implementations

impl<Q, K> Equivalent<K> for ArchiveOffset where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

fn equivalent(&self, key: &K) -> bool

impl<Q, K> Equivalent<K> for ArchiveOffset where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

fn equivalent(&self, key: &K) -> bool

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for ArchiveOffset where T: Clone,

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

impl<T> From<T> for ArchiveOffset

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Same for ArchiveOffset

type Output = T;

impl<T> ToOwned for ArchiveOffset where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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