pub struct EntryOptions {
pub compression: Compression,
pub alignment: u16,
}Expand description
How one entry is written.
Fields§
§compression: Compression§alignment: u16The alignment of stored data within the file. Compressed data is never aligned (it cannot be memory-mapped).
Implementations§
Source§impl EntryOptions
impl EntryOptions
Sourcepub const STORED: Self
pub const STORED: Self
Uncompressed with 4-byte alignment, zipalign’s default for stored entries.
Sourcepub const fn page_aligned(page_size: u16) -> Self
pub const fn page_aligned(page_size: u16) -> Self
Uncompressed and aligned to page_size, so Android can map the data
directly (native libraries with extractNativeLibs="false").
Sourcepub fn for_path(path: &ArchivePath) -> Self
pub fn for_path(path: &ArchivePath) -> Self
Stored for formats that are already compressed (as aapt2 does), and deflated otherwise.
Trait Implementations§
Source§impl Clone for EntryOptions
impl Clone for EntryOptions
impl Copy for EntryOptions
Source§impl Debug for EntryOptions
impl Debug for EntryOptions
impl Eq for EntryOptions
Source§impl Hash for EntryOptions
impl Hash for EntryOptions
Source§impl PartialEq for EntryOptions
impl PartialEq for EntryOptions
impl StructuralPartialEq for EntryOptions
Auto Trait Implementations§
impl Freeze for EntryOptions
impl RefUnwindSafe for EntryOptions
impl Send for EntryOptions
impl Sync for EntryOptions
impl Unpin for EntryOptions
impl UnsafeUnpin for EntryOptions
impl UnwindSafe for EntryOptions
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§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.