#[non_exhaustive]pub enum Entry<'a, R: Read> {
Tar(Box<Entry<'a, R>>),
Zip(ZipEntry),
}
Expand description
A read-only view into an entry of an archive.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
source§impl<'a, R: Read> Entry<'a, R>
impl<'a, R: Read> Entry<'a, R>
sourcepub fn extract(self, into_path: &Path) -> Result<()>
pub fn extract(self, into_path: &Path) -> Result<()>
Extract this entry into into_path
.
If it’s a directory, the target will be created, if it’s a file, it’ll be extracted at this location.
If it’s a symlink, it will be created.
Note: You need to include the complete path, with file name and extension.
Auto Trait Implementations§
impl<'a, R> Freeze for Entry<'a, R>
impl<'a, R> !RefUnwindSafe for Entry<'a, R>
impl<'a, R> !Send for Entry<'a, R>
impl<'a, R> !Sync for Entry<'a, R>
impl<'a, R> Unpin for Entry<'a, R>
impl<'a, R> !UnwindSafe for Entry<'a, R>
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