Enum zip::read::ArchiveOffset
source · pub enum ArchiveOffset {
Detect,
FromCentralDirectory,
Known(u64),
}
Expand description
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§
source§impl Clone for ArchiveOffset
impl Clone for ArchiveOffset
source§fn clone(&self) -> ArchiveOffset
fn clone(&self) -> ArchiveOffset
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 moresource§impl Debug for ArchiveOffset
impl Debug for ArchiveOffset
source§impl Default for ArchiveOffset
impl Default for ArchiveOffset
source§fn default() -> ArchiveOffset
fn default() -> ArchiveOffset
Returns the “default value” for a type. Read more
source§impl Hash for ArchiveOffset
impl Hash for ArchiveOffset
source§impl PartialEq for ArchiveOffset
impl PartialEq for ArchiveOffset
impl Copy for ArchiveOffset
impl Eq for ArchiveOffset
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 UnwindSafe for ArchiveOffset
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.